feat: convert uploaded contracts and invoices to pdf
This commit is contained in:
@@ -126,7 +126,11 @@ class CheckController extends AbstractController
|
||||
;
|
||||
|
||||
if (Upload::TYPE_INVOICE === $document->getType()) {
|
||||
$this->invoiceApprover->render($document->getDisposition());
|
||||
try {
|
||||
$this->invoiceApprover->render($document->getDisposition());
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
$this->addFlash('error', 'Die Honorarnote ist nicht als PDF hochgeladen worden');
|
||||
}
|
||||
}
|
||||
|
||||
$this->addFlash('success', 'Das Dokument wurde bestätigt');
|
||||
|
||||
Reference in New Issue
Block a user