fix : verrouillage utilisateur + modification de contrat terminé
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled

This commit is contained in:
2026-03-25 10:49:20 +01:00
parent 1a485e8780
commit 60bb3cf8c4
4 changed files with 19 additions and 9 deletions

View File

@@ -92,11 +92,13 @@ final readonly class EmployeeWriteProcessor implements ProcessorInterface
if (null === $requestedEndDate) {
throw new UnprocessableEntityHttpException('contractEndDate is required for close-only request.');
}
$isAlreadyEnded = null === $todayPeriod;
$this->periodManager->closeCurrentPeriod(
$effectivePeriod,
$requestedEndDate,
$changeRequest->contractPaidLeaveSettled ?? false,
$changeRequest->contractComment
$changeRequest->contractComment,
$isAlreadyEnded
);
return $result;