1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for import

This commit is contained in:
= 2020-12-30 08:58:48 +11:00
parent 9a5b27eb09
commit 389c80ca13

View File

@ -629,6 +629,8 @@ class Import implements ShouldQueue
unset($modified['id']);
if(array_key_exists('invitations', $resource))
{
foreach($resource['invitations'] as $key => $invite)
{
@ -638,7 +640,8 @@ class Import implements ShouldQueue
unset($resource['invitations'][$key]['recurring_invoice_id']);
}
}
$invoice = $invoice_repository->save(
$modified,
RecurringInvoiceFactory::create($this->company->id, $modified['user_id'])
@ -704,7 +707,6 @@ class Import implements ShouldQueue
$modified['invitations'] = $resource['invitations'];
}
$invoice = $invoice_repository->save(
$modified,
InvoiceFactory::create($this->company->id, $modified['user_id'])