mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Merge pull request #4859 from turbo124/v5-develop
Skip documents that cannot be matched
This commit is contained in:
commit
45ec7e7f85
@ -1013,11 +1013,13 @@ class Import implements ShouldQueue
|
||||
$modified = $resource;
|
||||
|
||||
if (array_key_exists('invoice_id', $resource) && $resource['invoice_id'] && ! array_key_exists('invoices', $this->ids)) {
|
||||
throw new ResourceDependencyMissing('Processing documents failed, because of missing dependency - invoices.');
|
||||
return;
|
||||
//throw new ResourceDependencyMissing('Processing documents failed, because of missing dependency - invoices.');
|
||||
}
|
||||
|
||||
if (array_key_exists('expense_id', $resource) && $resource['expense_id'] && ! array_key_exists('expenses', $this->ids)) {
|
||||
throw new ResourceDependencyMissing('Processing documents failed, because of missing dependency - expenses.');
|
||||
return;
|
||||
//throw new ResourceDependencyMissing('Processing documents failed, because of missing dependency - expenses.');
|
||||
}
|
||||
|
||||
if (array_key_exists('invoice_id', $resource) && $resource['invoice_id'] && array_key_exists('invoices', $this->ids)) {
|
||||
|
Loading…
Reference in New Issue
Block a user