1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01:00

Recurring Expenses import

This commit is contained in:
David Bomba 2021-08-29 22:39:50 +10:00
parent c4f50fadf7
commit d1ddfa16cd

View File

@ -974,7 +974,10 @@ class Import implements ShouldQueue
}
$modified['client_id'] = $this->transformId('clients', $resource['client_id']);
$modified['recurring_id'] = $this->transformId('recurring_invoices', $resource['recurring_id']);
if(array_key_exists('recurring_id', $resource) && !is_null($resource['recurring_id']))
$modified['recurring_id'] = $this->transformId('recurring_invoices', (string)$resource['recurring_id']);
$modified['user_id'] = $this->processUserId($resource);
$modified['company_id'] = $this->company->id;
$modified['line_items'] = $this->cleanItems($modified['line_items']);