]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавил префикс
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 28 Jan 2025 12:21:52 +0000 (15:21 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 28 Jan 2025 12:21:52 +0000 (15:21 +0300)
erp24/api2/controllers/DataController.php

index a80a3f3183353aaea3c81f038be6566f5e2b74f1..34f73dff102190f43bf96333666c4f7d08b2a4ba 100644 (file)
@@ -374,10 +374,11 @@ class DataController extends BaseController
                 }
 
                 foreach ($writeOff as $row) {
+                    $typeWithPrefix = WriteOffsErp::WRITE_OFFS_TYPE_BRAK_PREFIX . $row['write_offs_type'];
                     $writeOffResult[] = [
                         'id' => $row['guid'],
                         'store_id' => $row['store_guid'],
-                        'type' => $row['write_offs_type'],
+                        'type' => $typeWithPrefix,
                         'cause' => 'Документ списания в ERP ' . $row['number'],
                         'items' => $row['items'],
                         'summ' => $row['summ'],