'Your Payment Proof' feature missing for order with storage invoices through group payment

This commit is contained in:
Dillon Ngo
2024-06-09 12:16:18 +08:00
parent b000c25e66
commit aeaec32dcb
@@ -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);
}