]> gitweb.erp-flowers.ru Git - yii-erp24/.git/commitdiff
shipment ajax
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 18 Apr 2024 15:05:01 +0000 (18:05 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 18 Apr 2024 15:05:01 +0000 (18:05 +0300)
erp24/controllers/ShipmentController.php
erp24/modul/shipment/ajaxDivisionAutoHandStart.php
erp24/modul/shipment/functionsShipment.php
erp24/views/shipment/ajax-division-auto-hand-start.php [new file with mode: 0644]

index 4c41495b8c5068e8d80d9c06a2aa74130b071593..fb9d0692841280899e8e5a6311760282f13795d2 100755 (executable)
@@ -19,4 +19,5 @@ class ShipmentController extends Controller
     public function actionDivisionStore() { return $this->render('division-store'); }
     public function actionDivisionStorePrint() { return $this->render('division-store-print'); }
     public function actionStoreOrderScore() { return $this->render('store-order-score'); }
+    public function actionAjaxDivisionAutoHandStart() { return $this->render('ajax-division-auto-hand-start'); }
 }
\ No newline at end of file
index 54478a70863944377ecf3f72491d7312bf6dbfeb..cce7279638f08f447b5f0f2e5428d014cf722e11 100644 (file)
@@ -1,13 +1,15 @@
-<?
-include_once("startup.php");
-include_once("inc/db.php");
-include_once("inc/base_new.php");
+<?php
+include_once(dirname(__DIR__, 2) . "/startup.php");
+include_once(dirname(__DIR__, 2) . "/inc/db.php");
+include_once(dirname(__DIR__, 2) . "/inc/base_new.php");
+
+global $orderId, $products, $productsColorsArray;
 
 if(!empty($_REQUEST["id"])) { 
-$orderId=(int)$_REQUEST["id"]; 
+$orderId=(int)$_REQUEST["id"];
 
 
-include"modul/shipment/functionsShipment.php";
+include_once(__DIR__. "/functionsShipment.php");
 $FiledsData=getDataFiledsData($orderId);
 $storeOrderArray=getRelationshipCityStore();
 
index adbeef16c430c27838ced421fa5ac6fbc805d3a8..cf5063bd5ce35789805dd0141d09ef173b985141 100644 (file)
@@ -22,8 +22,8 @@ $orderStoresArrayRelation, // массив с гуидами магазинов
 $orderStoresArrayRelation_in //  SQL условие для выборки по магазинам IN('store_id')
 , $productGroupArray // массив с ID подгруппы группы товаров для автозакупки Короткие розы
 ,$related_order_id
-,$date_start_division
-
+,$date_start_division,
+$param
 ;
  
 
diff --git a/erp24/views/shipment/ajax-division-auto-hand-start.php b/erp24/views/shipment/ajax-division-auto-hand-start.php
new file mode 100644 (file)
index 0000000..0b9a333
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+
+chdir(__DIR__ . '/../../');
+
+include 'modul/shipment/ajaxDivisionAutoHandStart.php';
\ No newline at end of file