From 71d8f3d59b244396664ecb71acebbf0bf22bbdfe Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Tue, 8 Oct 2019 10:56:23 +0800 Subject: [PATCH] large commit --- app/Classes/Modules/Companies/Services/UpdatesCompany.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'),