From: Aleksey Filippov Date: Thu, 18 Apr 2024 15:26:25 +0000 (+0300) Subject: правки по автозаказу X-Git-Tag: 1.1~131^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=c7be0a773b0b6298e8d1314d0d089e5f9c6c9f56;p=erp24_rep%2Fyii-erp24%2F.git правки по автозаказу --- diff --git a/erp24/controllers/ShipmentController.php b/erp24/controllers/ShipmentController.php index fb9d0692..1b0fe7ae 100755 --- a/erp24/controllers/ShipmentController.php +++ b/erp24/controllers/ShipmentController.php @@ -19,5 +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'); } + public function actionAjaxDivisionAutoHandStart() { return $this->renderPartial('ajax-division-auto-hand-start'); } } \ No newline at end of file diff --git a/erp24/modul/shipment/divisionStore.php b/erp24/modul/shipment/divisionStore.php index 9457b522..d292d398 100644 --- a/erp24/modul/shipment/divisionStore.php +++ b/erp24/modul/shipment/divisionStore.php @@ -407,11 +407,14 @@ jQuery('#modal-7').modal('show', {backdrop: 'static'}); $('#modal-7 .modal-title function ajaxDivisionAutoHandStart(product_id){ $('#modal-7 .modal-body').html('Считаем данные'); jQuery('#modal-7').modal('show', {backdrop: 'static'}); $('#modal-7 .modal-title').text('Обновляем данные для авто-добавки деления'); + + const param3 = $('meta[name=csrf-param]').attr('content'); + const token3 = $('meta[name=csrf-token]').attr('content'); $.ajax({ - url: '/shipment/ajaxDivisionAutoHandStart/', + url: '/shipment/ajax-division-auto-hand-start/', method: 'post', dataType: 'html', - data: { id: $orderId, product_id: product_id}, + data: { id: $orderId, product_id: product_id, [param3]:token3}, success: function(data){ $('#modal-7 .modal-body').html(data);