From 96658e89f65ab557508b996b2d1cae6051205d05 Mon Sep 17 00:00:00 2001 From: JoySystem_v Date: Wed, 7 Aug 2024 13:04:59 +0300 Subject: [PATCH] Fix method name --- erp24/actions/motivation/SumSalaryAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5