From: Alexander Smirnov Date: Thu, 29 Aug 2024 13:43:29 +0000 (+0300) Subject: [ERP-130] Дебаг 002 X-Git-Tag: 1.4~11^2~27 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=cfc3157849bdfc3989b25139dd5d95b1625dda80;p=erp24_rep%2Fyii-erp24%2F.git [ERP-130] Дебаг 002 --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 999e92af..da01bffb 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -465,7 +465,10 @@ class MotivationService ->andWhere(['store_id' => $store_id]) ->indexBy('product_guid') ->asArray()->all(); -var_dump($writeOffs); var_dump("--------------------------------------------"); var_dump($selfCostProduct); die; +if (!empty($selfCostProduct)) { + var_dump($selfCostProduct); + die; +} foreach (MotivationCostsItem::getWriteOffsItems() as $key) { $data = $writeOffs[$key] ?? null; $sum = 0;