From: Alexander Smirnov Date: Mon, 2 Sep 2024 10:47:59 +0000 (+0300) Subject: [ERP-130] Дебаг 001 X-Git-Tag: 1.4~11^2~24 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=404165dd5723a5a67b02bef4e1f1108fdbe4090d;p=erp24_rep%2Fyii-erp24%2F.git [ERP-130] Дебаг 001 --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index df6d12b7..88df6cec 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -475,6 +475,8 @@ class MotivationService foreach ($json as $itemArr) { $sum += ($selfCostProduct[$itemArr['product_id']]["price"] ?? 0) * ($itemArr['quantity'] ?? 0); + var_dump($selfCostProduct[$itemArr['product_id']]["price"] ?? 0); + var_dump($itemArr['quantity'] ?? 0); } } catch (\Exception $ex) {} } @@ -486,6 +488,7 @@ class MotivationService MotivationCostsItem::DATA_TYPE_FLOAT, $sum); } } + die; } }