mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
minor fixes
This commit is contained in:
parent
7ae477faf3
commit
db50774b00
@ -1525,10 +1525,11 @@ class Import implements ShouldQueue
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// throw new Exception("Resource invoice/quote document not available.");
|
// throw new Exception("Resource invoice/quote document not available.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$entity = false;
|
||||||
|
|
||||||
if (array_key_exists('expense_id', $resource) && $resource['expense_id'] && array_key_exists('expenses', $this->ids)) {
|
if (array_key_exists('expense_id', $resource) && $resource['expense_id'] && array_key_exists('expenses', $this->ids)) {
|
||||||
$expense_id = $this->transformId('expenses', $resource['expense_id']);
|
$expense_id = $this->transformId('expenses', $resource['expense_id']);
|
||||||
$entity = Expense::query()->where('id', $expense_id)->withTrashed()->first();
|
$entity = Expense::query()->where('id', $expense_id)->withTrashed()->first();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user