From ff46d0787cb469c9d7b83867966b2c235fccb46e Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 19 Dec 2023 21:06:12 +0300 Subject: [PATCH] add shipment store-products-fact during pure php to yii movement --- .../shipment/StoreProductsFactEditAction.php | 12 +++++++++ erp24/controllers/ShipmentController.php | 1 + erp24/views/shipment/polnogramm.php | 1 + .../shipment/store-products-fact-edit.php | 25 +++++++++++++++++++ erp24/views/shipment/store-products-fact.php | 13 +++++++--- 5 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 erp24/actions/shipment/StoreProductsFactEditAction.php create mode 100644 erp24/views/shipment/store-products-fact-edit.php diff --git a/erp24/actions/shipment/StoreProductsFactEditAction.php b/erp24/actions/shipment/StoreProductsFactEditAction.php new file mode 100644 index 0000000..bc4facf --- /dev/null +++ b/erp24/actions/shipment/StoreProductsFactEditAction.php @@ -0,0 +1,12 @@ +controller->renderPartial('store-products-fact-edit'); + } +} \ No newline at end of file diff --git a/erp24/controllers/ShipmentController.php b/erp24/controllers/ShipmentController.php index f765f17..27e8d67 100755 --- a/erp24/controllers/ShipmentController.php +++ b/erp24/controllers/ShipmentController.php @@ -25,6 +25,7 @@ class ShipmentController extends \yii\web\Controller 'division-print-edit' => \yii_app\actions\shipment\DivisionPrintEditAction::class, 'set-division-priority' => \yii_app\actions\shipment\SetDivisionPriorityAction::class, 'store-products-fact' => \yii_app\actions\shipment\StoreProductsFactAction::class, + 'store-products-fact-edit' => \yii_app\actions\shipment\StoreProductsFactEditAction::class, 'polnogramm' => \yii_app\actions\shipment\PolnogrammAction::class, 'store-planogram-logi' => \yii_app\actions\shipment\StorePlanogramLogiAction::class, ]; diff --git a/erp24/views/shipment/polnogramm.php b/erp24/views/shipment/polnogramm.php index b5f05dc..6d4b755 100644 --- a/erp24/views/shipment/polnogramm.php +++ b/erp24/views/shipment/polnogramm.php @@ -465,6 +465,7 @@ $.ajax({ //include"templates/bottom.php"; +include_once dirname(__DIR__, 2) . '/templates/bottom_light.php'; diff --git a/erp24/views/shipment/store-products-fact-edit.php b/erp24/views/shipment/store-products-fact-edit.php new file mode 100644 index 0000000..48f3bb3 --- /dev/null +++ b/erp24/views/shipment/store-products-fact-edit.php @@ -0,0 +1,25 @@ +
++$color++$sql"; + $db::sql($sql); + +} \ No newline at end of file diff --git a/erp24/views/shipment/store-products-fact.php b/erp24/views/shipment/store-products-fact.php index 50954ec..0d6dd73 100644 --- a/erp24/views/shipment/store-products-fact.php +++ b/erp24/views/shipment/store-products-fact.php @@ -561,8 +561,9 @@ WHERE cl.tip='related' group by p.id order by o.provider_id, p.parent_id, p.name .zak td.td_product:hover {background:#fff;} */ +global $_CONFIG; - $_CONFIG["jscss"] = ($_CONFIG["jscss"] ?? '') . ' '; + include_once dirname(__DIR__, 2) . '/templates/bottom_light.php'; } //include"templates/bottom.php"; + -- 2.39.5