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;