1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00

Minor fixes for company imports

This commit is contained in:
David Bomba 2021-12-13 18:19:01 +11:00
parent 86fb3af56b
commit d8bdf23f8f

View File

@ -1335,12 +1335,14 @@ class CompanyImport implements ShouldQueue
/* New to convert product ids from old hashes to new hashes*/
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']);
// $obj_array['webhook_configuration'] = json_encode($obj_array['webhook_configuration']);
$obj_array['webhook_configuration'] = '';
if(array_key_exists('company', $obj_array))
unset($obj_array['company']);
$obj_array['webhook_configuration'] = (array)$obj_array['webhook_configuration'];
$obj_array['recurring_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*/