]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
изменения
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 16 Dec 2024 13:31:00 +0000 (16:31 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 16 Dec 2024 13:31:00 +0000 (16:31 +0300)
erp24/api2/controllers/DataController.php

index bbd1af1fdc69a6072c6f7a8979b52ecfd61290dc..416226658e399633cd230fb9d1deb3c722c01dc6 100644 (file)
@@ -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'],