From a0749be96ea416d76228da329cfc3f5957209401 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 4 Oct 2023 00:54:41 +1100 Subject: [PATCH] always set the currency_id --- app/Repositories/PaymentRepository.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Repositories/PaymentRepository.php b/app/Repositories/PaymentRepository.php index 114f320cf47b..6bc842e4b559 100644 --- a/app/Repositories/PaymentRepository.php +++ b/app/Repositories/PaymentRepository.php @@ -101,6 +101,9 @@ class PaymentRepository extends BaseRepository $client->saveQuietly(); } }, 1); + + $client = Client::query()->where('id', $data['client_id'])->withTrashed()->first(); + } /*Fill the payment*/