From 29f1a0a6d7b3f71ab63c597eb6d7d02e77f35352 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 5 Sep 2024 11:21:05 +0300 Subject: [PATCH] =?utf8?q?[ERP-107]=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?utf8?q?=D0=B8=D0=BB=20=D1=84=D0=BE=D1=80=D0=BC=D1=83=D0=BB=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 44f7f4df..1e5f66a5 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -1678,7 +1678,8 @@ class MotivationService $j66 = 0; if ($c62 >= $b64) { - $formula = $c62 - $c5 * $motivationDataTableSort[$indMap[self::CODE_THRESHOLD_COEFFICIENT]]["plan"]; // "Пороговый коэффициент" + $formula = ($c62 - $c5 * $motivationDataTableSort[$indMap[self::CODE_THRESHOLD_COEFFICIENT]]["plan"]) * + $motivationDataTableSort[$indMap[self::CODE_BONUS_SIZE]]["plan"]; // ("Чистая прибыль" - "Пороговый коэффициент"*"Выручка от реализации") * "Размер бонуса" if ($formula > 0) { $j66 = $formula; } -- 2.39.5