],
]);
}
- if ($data->shift_type == 0) {
+ if ($data->shift_type == Shift::FULL_DAY_SHIFT) {
$storeVisitorsQuery->andWhere([
'or',
[
],
]);
}
- if ($data->shift_type == 0) {
+ if ($data->shift_type == Shift::FULL_DAY_SHIFT) {
$storeVisitorsQuery->andWhere([
'or',
[
->andWhere(['shift_id' => $shiftIds]);
// Для типа смены 0 (обе смены) считаем каждую смену отдельно
- if ($data->shift_type == 0) {
+ if ($data->shift_type == Shift::FULL_DAY_SHIFT) {
// Для обеих смен нужны уникальные комбинации admin_id и shift_id
$allAdminsInPeriod = $allAdminsInPeriodQuery
->select(['admin_id', 'shift_id'])
],
]);
}
- if ($data->shift_type == 0) {
+ if ($data->shift_type == Shift::FULL_DAY_SHIFT) {
$storeVisitorsQuery->andWhere([
'or',
[