Исправления дат для отчетов дежурного и мед. сестры
This commit is contained in:
@@ -160,7 +160,7 @@ class DateRangeService
|
|||||||
private function getDefaultDateRange($user): array
|
private function getDefaultDateRange($user): array
|
||||||
{
|
{
|
||||||
$requestPath = request()->path();
|
$requestPath = request()->path();
|
||||||
$switchToday = $requestPath === 'report';
|
$switchToday = $requestPath === 'report' || $requestPath === 'nurse/report';
|
||||||
|
|
||||||
[$startDate, $endDate] = $this->currentShiftBoundaries($switchToday);
|
[$startDate, $endDate] = $this->currentShiftBoundaries($switchToday);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user