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;
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;