diff --git a/app/Classes/Modules/Companies/Services/UpdatesCompany.php b/app/Classes/Modules/Companies/Services/UpdatesCompany.php index 07eaf75..537474c 100644 --- a/app/Classes/Modules/Companies/Services/UpdatesCompany.php +++ b/app/Classes/Modules/Companies/Services/UpdatesCompany.php @@ -53,7 +53,7 @@ class UpdatesCompany } } - $this->repository->where('company_id', $company->id)->where('billing', true)->delete(); + $this->repository->where('type', 1)->where('reference', $company->id)->where('billing', true)->delete(); $billing = new AddressBookObject(1, $company->id, null, null, $request->input('street_one'), $request->input('street_two'), $request->input('city'),