fix(pickup-exceptions): update noReplacement logic for checkbox state

Ensure noReplacement reflects checkbox status for accurate behavior.
This commit is contained in:
Jérémy Munsch 2026-10-29 18:24:21 +01:00
parent 36faed679e
commit 961829a0c7
No known key found for this signature in database
GPG key ID: 2AAECDA6B7330F91

View file

@ -85,7 +85,7 @@
$associatedException?->pivot?->order_deadline_at?->format('Y-m-d\TH:i'),
);
$noReplacement = empty($associatedException?->pivot?->replacement_date);
$noReplacement = $isChecked && empty($associatedException?->pivot?->replacement_date);
$isCritical = $dto->missingSubsitute || $dto->passedDeadline;