From aeaec32dcbdac72eb8f7db1d90f0e383d18717f9 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sun, 9 Jun 2024 12:16:18 +0800 Subject: [PATCH] 'Your Payment Proof' feature missing for order with storage invoices through group payment --- app/Http/Resources/TransactionWithStorageResource.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Resources/TransactionWithStorageResource.php b/app/Http/Resources/TransactionWithStorageResource.php index 66ea152c..42f42cc0 100644 --- a/app/Http/Resources/TransactionWithStorageResource.php +++ b/app/Http/Resources/TransactionWithStorageResource.php @@ -90,7 +90,8 @@ class TransactionWithStorageResource extends JsonResource ->get()); //For 'Your Payment Proof' at frontend - if($group_payment_history_query){ + + if($group_payment_history_query && count($group_payment_history_query) > 0){ foreach ($payment_history as $item) { $item['payment_reference'] = $this->getReferenceForGroupPayment($group_payment_history_query); }