Compare commits

..

2 Commits

Author SHA1 Message Date
gitea-actions
f7568f2d09 chore: bump version to v0.1.20
All checks were successful
Auto Tag Develop / tag (push) Successful in 4s
Build Release Artefact / build (push) Successful in 1m30s
2026-03-10 16:07:18 +00:00
9c164fe78e fix : prise en compte de la balance des congés
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
2026-03-10 17:07:09 +01:00
2 changed files with 8 additions and 1 deletions

View File

@@ -1,2 +1,2 @@
parameters:
app.version: '0.1.19'
app.version: '0.1.20'

View File

@@ -193,6 +193,13 @@ final readonly class EmployeeLeaveSummaryProvider implements ProviderInterface
$leavePolicy['countOnlyCp'],
$leavePolicy['splitSaturdays']
);
// Bootstrap support: if the opening balance has pre-filled taken days
// (e.g. manual data entry for production bootstrap), add them as an offset.
if (null !== $openingBalance) {
$takenDays += $openingBalance->getTakenDays();
$takenSaturdays += $openingBalance->getTakenSaturdays();
}
if (LeaveRuleCode::CDI_CDD_NON_FORFAIT->value === $leavePolicy['ruleCode']) {
$availableAcquired = max(0.0, $carryDays);
$takenFromAcquired = min($availableAcquired, $takenDays);