]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Fix method name
authorJoySystem_v <fvv2011@gmail.com>
Wed, 7 Aug 2024 10:04:59 +0000 (13:04 +0300)
committerJoySystem_v <fvv2011@gmail.com>
Wed, 7 Aug 2024 10:04:59 +0000 (13:04 +0300)
erp24/actions/motivation/SumSalaryAction.php

index aec5b695d14cb75ede3440d0eb6b4facdfedb270..e3b48ec24551cddf9d79162716a6fc0b79c70f3a 100644 (file)
@@ -41,7 +41,7 @@ class SumSalaryAction extends \yii\base\Action
         foreach ($motivations as $motivation) {
             $store_id = $motivation->store_id;
 
-            $records = MotivationService::getRecordsByDateAndStore($startDate, $endDate, $store_id);
+            $records = MotivationService::getTimetableFactRecordsByDateAndStore($startDate, $endDate, $store_id);
             $vacationSum = MotivationService::getVacationsSum($startDate, $endDate, $store_id);
 
             $totalSalary = 0;
@@ -104,7 +104,7 @@ class SumSalaryAction extends \yii\base\Action
         foreach ($motivations as $motivation) {
             $store_id = $motivation->store_id;
 
-            $monthlyRecords = MotivationService::getRecordsByDateAndStore($startOfMonth->format('Y-m-d'), $endOfMonth->format('Y-m-d'), $store_id);
+            $monthlyRecords = MotivationService::getTimetableFactRecordsByDateAndStore($startOfMonth->format('Y-m-d'), $endOfMonth->format('Y-m-d'), $store_id);
             $monthlyVacationSum = MotivationService::getVacationsSum($startOfMonth->format('Y-m-d'), $endOfMonth->format('Y-m-d'), $store_id);
 
             $monthlyTotalSalary = 0;