Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7568f2d09 | ||
| 9c164fe78e |
@@ -1,2 +1,2 @@
|
||||
parameters:
|
||||
app.version: '0.1.19'
|
||||
app.version: '0.1.20'
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user