mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
minor code cleanups
This commit is contained in:
parent
8e850ea2a6
commit
e204788ef6
@ -176,13 +176,14 @@ class InboundMailEngine
|
||||
// handle documents seperatly
|
||||
foreach ($email->documents as $document) {
|
||||
|
||||
/** @var \App\Models\Expense $expense */
|
||||
$expense = null;
|
||||
|
||||
// TODO: check if document is a ZugferdEDocument and can be handled that way
|
||||
if ($document->extension() === 'pdf' || $document->extension() === 'xml') {
|
||||
try {
|
||||
|
||||
$expense = (new ZugferdEDocument($document->getContent()))->run();
|
||||
$expense = (new ZugferdEDocument($document->get()))->run();
|
||||
|
||||
} catch (\Exception $err) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user