diff --git a/app/Repositories/ClientContactRepository.php b/app/Repositories/ClientContactRepository.php index 5900ac7eee52..f2dc62691e43 100644 --- a/app/Repositories/ClientContactRepository.php +++ b/app/Repositories/ClientContactRepository.php @@ -71,6 +71,7 @@ class ClientContactRepository extends BaseRepository $client->company->client_contacts()->where('email', $update_contact->email)->update(['password' => $update_contact->password]); } + $update_contact->email = trim($contact['email']); $update_contact->save(); }); diff --git a/app/Services/Payment/DeletePayment.php b/app/Services/Payment/DeletePayment.php index bc68506b40d2..b486180550ca 100644 --- a/app/Services/Payment/DeletePayment.php +++ b/app/Services/Payment/DeletePayment.php @@ -115,10 +115,10 @@ class DeletePayment ->updatePaidToDate($net_deletable * -1) ->save(); - $paymentable_invoice->client - ->service() - ->updatePaidToDate($net_deletable * -1) - ->save(); + // $paymentable_invoice->client + // ->service() + // ->updatePaidToDate($net_deletable * -1) + // ->save(); } });