feat: don‘t block invoice uploads after 14 days
This commit is contained in:
@@ -90,18 +90,6 @@ class DispositionWorkflowGuardSubscriber implements EventSubscriberInterface
|
||||
;
|
||||
$event->setBlocked(true, $message);
|
||||
}
|
||||
|
||||
$dueDate = $destination->getDateTo()->modify('+14 days');
|
||||
|
||||
if ($dueDate < $today) {
|
||||
$message = $this
|
||||
->translator
|
||||
->trans('message.upload_invoice.too_late', [
|
||||
'%date%' => $dueDate->format('d.m.Y'),
|
||||
])
|
||||
;
|
||||
$event->setBlocked(true, $message);
|
||||
}
|
||||
}
|
||||
|
||||
public function guardConfirmInvoice(GuardEvent $event): void
|
||||
|
||||
Reference in New Issue
Block a user