From becb16c6749807de36960fbe2d5cb7c108b825e2 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Wed, 19 Oct 2022 14:53:51 +0800 Subject: [PATCH] add further description to export payments --- .../Modules/Exports/Services/ExportsPaymentTransactions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php b/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php index c1b577ff..d75aef30 100644 --- a/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php @@ -105,7 +105,7 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading $furtherDescription = ''; - foreach ($transaction->transactionDetails() as $item){ + foreach ($transaction->transactionDetails as $item){ switch($item->reference){ case 'SHIPPING_FEE': $furtherDescription .= str_replace($item->name, 'X1 Freight Service Charge
', '').'\r\n';