From 4830986b168a81062ca30cc07e115585606a3173 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 16 Dec 2024 16:31:00 +0300 Subject: [PATCH] =?utf8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?utf8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/DataController.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index bbd1af1f..41622665 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -141,7 +141,7 @@ class DataController extends BaseController { $waybillIncomingIds = $waybillIncomingArray['waybillIncomingIds']; if (!empty($waybillIncoming)) { - $mess['create_waybill_incoming'] = $waybillIncoming; + $mess['create_write_ons'] = $waybillIncoming; } $createEmployeeArray = $this->getCreateEmployee(); @@ -348,13 +348,12 @@ class DataController extends BaseController { 'store_guid', 'number', 'date', -// 'write_offs_type', 'comment', 'quantity', 'summ' ]) ->indexBy('id') - ->andWhere(['and', ['status' => 2], ['active' => 1]]) + ->andWhere(['status' => 2]) ->asArray() ->all(); @@ -393,8 +392,8 @@ class DataController extends BaseController { $waybillIncomingResult[] = [ 'id' => $row['guid'], 'store_id' => $row['store_guid'], -// 'type' => $row['write_offs_type'], -// 'cause' => 'Документ списания в ERP ' . $row['number'], + 'type' => 'ревизия при передаче смены', + 'cause' => 'Документ ревизии при передаче смены в ERP ' . $row['number'], 'items' => $row['items'], 'summ' => $row['summ'], 'comment' => $row['comment'], -- 2.39.5