mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop
This commit is contained in:
commit
f2a171080e
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user