mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Minor fixes for company imports
This commit is contained in:
parent
86fb3af56b
commit
d8bdf23f8f
@ -1335,12 +1335,14 @@ class CompanyImport implements ShouldQueue
|
|||||||
|
|
||||||
/* New to convert product ids from old hashes to new hashes*/
|
/* New to convert product ids from old hashes to new hashes*/
|
||||||
if($class == 'App\Models\Subscription'){
|
if($class == 'App\Models\Subscription'){
|
||||||
//$obj_array['product_ids'] = $this->recordProductIds($obj_array['product_ids']);
|
|
||||||
//$obj_array['recurring_product_ids'] = $this->recordProductIds($obj_array['recurring_product_ids']);
|
if(array_key_exists('company', $obj_array))
|
||||||
// $obj_array['webhook_configuration'] = json_encode($obj_array['webhook_configuration']);
|
unset($obj_array['company']);
|
||||||
$obj_array['webhook_configuration'] = '';
|
|
||||||
|
$obj_array['webhook_configuration'] = (array)$obj_array['webhook_configuration'];
|
||||||
$obj_array['recurring_product_ids'] = '';
|
$obj_array['recurring_product_ids'] = '';
|
||||||
$obj_array['product_ids'] = '';
|
$obj_array['product_ids'] = '';
|
||||||
|
nlog($obj_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Expenses that don't have a number will not be inserted - so need to override here*/
|
/* Expenses that don't have a number will not be inserted - so need to override here*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user