feat : ajout de la gestion des heures chauffeurs
All checks were successful
Auto Tag Develop / tag (push) Successful in 8s
All checks were successful
Auto Tag Develop / tag (push) Successful in 8s
This commit is contained in:
@@ -27,5 +27,7 @@ final class ContractHistoryItem
|
||||
public ?int $periodId = null,
|
||||
#[Groups(['employee:read'])]
|
||||
public array $suspensions = [],
|
||||
#[Groups(['employee:read'])]
|
||||
public bool $isDriver = false,
|
||||
) {}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ final class DayContextRow
|
||||
public bool $absentAfternoon = false,
|
||||
public int $creditedMinutes = 0,
|
||||
public float $creditedPresenceUnits = 0.0,
|
||||
public bool $isDriverContract = false,
|
||||
) {}
|
||||
|
||||
public function addAbsence(
|
||||
@@ -78,6 +79,7 @@ final class DayContextRow
|
||||
'absentAfternoon' => $this->absentAfternoon,
|
||||
'creditedMinutes' => $this->creditedMinutes,
|
||||
'creditedPresenceUnits' => $this->creditedPresenceUnits,
|
||||
'isDriverContract' => $this->isDriverContract,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -15,5 +15,8 @@ final class WeeklyDaySummary
|
||||
public bool $hasAbsence = false,
|
||||
public ?string $absenceLabel = null,
|
||||
public ?string $absenceColor = null,
|
||||
public bool $hasBreakfast = false,
|
||||
public bool $hasLunch = false,
|
||||
public bool $hasOvernight = false,
|
||||
) {}
|
||||
}
|
||||
|
||||
@@ -26,5 +26,9 @@ final class WeeklySummaryRow
|
||||
public int $weeklyOvertime25Minutes,
|
||||
public int $weeklyOvertime50Minutes,
|
||||
public int $weeklyRecoveryMinutes,
|
||||
public bool $isDriver = false,
|
||||
public int $weeklyBreakfastCount = 0,
|
||||
public int $weeklyLunchCount = 0,
|
||||
public int $weeklyOvernightCount = 0,
|
||||
) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user