From: JoySystem_v Date: Wed, 7 Aug 2024 10:04:59 +0000 (+0300) Subject: Fix method name X-Git-Tag: 1.4~35^2~17 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=96658e89f65ab557508b996b2d1cae6051205d05;p=erp24_rep%2Fyii-erp24%2F.git Fix method name --- diff --git a/erp24/actions/motivation/SumSalaryAction.php b/erp24/actions/motivation/SumSalaryAction.php index aec5b695..e3b48ec2 100644 --- a/erp24/actions/motivation/SumSalaryAction.php +++ b/erp24/actions/motivation/SumSalaryAction.php @@ -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;