From 6d0f025c5a553e5d0ca0073ca363a8eb965f7b82 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 16 Aug 2024 16:57:36 +0300 Subject: [PATCH] =?utf8?q?[ERP-140]=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8?= =?utf8?q?=D0=BB=D1=81=D1=8F=20=D0=B0=D0=BF=D0=B8=20=D1=84=D1=83=D0=BD?= =?utf8?q?=D0=BA=D1=86=D0=B8=D0=B8=20saveUploadMotivationValue?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index a379c5f3..de3166d5 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -1281,7 +1281,7 @@ class MotivationService $correction = self::getMotivationValue($motivation->id, 8, 11); self::saveOrUpdateMotivationValue($motivation->id, - 6, 11, "float", $monthlyTotalSalary + $correction); + "fact", 11, "float", $monthlyTotalSalary + $correction); } } @@ -1293,7 +1293,7 @@ class MotivationService foreach ($motivations as $motivation) { $correction = self::getMotivationValue($motivation->id, 8, 16); self::saveOrUpdateMotivationValue($motivation->id, - 6, 16, "float", $correction); + "fact", 16, "float", $correction); } } @@ -1305,7 +1305,7 @@ class MotivationService foreach ($motivations as $motivation) { $plan = self::getMotivationValue($motivation->id, 7, 27); self::saveOrUpdateMotivationValue($motivation->id, - 6, 27, "float", $plan); + "fact", 27, "float", $plan); } } @@ -1317,7 +1317,7 @@ class MotivationService foreach ($motivations as $motivation) { $plan = self::getMotivationValue($motivation->id, 7, 28); self::saveOrUpdateMotivationValue($motivation->id, - 6, 28, "float", $plan); + "fact", 28, "float", $plan); } } @@ -1340,7 +1340,7 @@ class MotivationService /** @var $motivation Motivation */ $tariff = self::getMotivationValue($motivation->id, 7, 36); self::saveOrUpdateMotivationValue($motivation->id, - 6, 29, "float", $tariff * ($timetableFactModels[$motivation->store_id]['cnt'] ?? 0)); + "fact", 29, "float", $tariff * ($timetableFactModels[$motivation->store_id]['cnt'] ?? 0)); } } @@ -1352,7 +1352,7 @@ class MotivationService foreach ($motivations as $motivation) { $plan = self::getMotivationValue($motivation->id, 7, 31); self::saveOrUpdateMotivationValue($motivation->id, - 6, 31, "float", $plan); + "fact", 31, "float", $plan); } } @@ -1364,7 +1364,7 @@ class MotivationService foreach ($motivations as $motivation) { $plan = self::getMotivationValue($motivation->id, 7, 32); self::saveOrUpdateMotivationValue($motivation->id, - 6, 32, "float", $plan); + "fact", 32, "float", $plan); } } @@ -1376,7 +1376,7 @@ class MotivationService foreach ($motivations as $motivation) { $correction = self::getMotivationValue($motivation->id, 8, 33); self::saveOrUpdateMotivationValue($motivation->id, - 6, 33, "float", $correction); + "fact", 33, "float", $correction); } } @@ -1389,7 +1389,7 @@ class MotivationService foreach ($motivations as $motivation) { foreach ($valueIdIndices as $index) { - self::saveOrUpdateMotivationValue($motivation->id, 6, $index, "float", 0); + self::saveOrUpdateMotivationValue($motivation->id, "fact", $index, "float", 0); } } } -- 2.39.5