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

This commit is contained in:
Dillon Ngo
2024-06-09 12:44:19 +08:00
parent aeaec32dcb
commit e63e3e707f
@@ -92,8 +92,10 @@ class TransactionWithStorageResource extends JsonResource
//For 'Your Payment Proof' at frontend
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);
if($this->getReferenceForGroupPayment($group_payment_history_query)){
foreach ($payment_history as $item) {
$item['payment_reference'] = $this->getReferenceForGroupPayment($group_payment_history_query);
}
}
}