Remove Client from CompanyImport - RecurringExpense number

This commit is contained in:
David Bomba 2022-01-26 07:36:56 +11:00
parent 320204ec67
commit 3a4b474511

View File

@ -1381,7 +1381,7 @@ class CompanyImport implements ShouldQueue
$new_obj->company_id = $this->company->id;
$new_obj->fill($obj_array);
$new_obj->save(['timestamps' => false]);
$new_obj->number = $this->getNextRecurringExpenseNumber($client = Client::find($obj_array['client_id']), $new_obj);
$new_obj->number = $this->getNextRecurringExpenseNumber($new_obj);
}
else{
$new_obj = $class::withTrashed()->firstOrNew(