From b5cba80db94333fd9b37a13985fdf7fb5f156b80 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Wed, 19 Oct 2022 15:09:33 +0800 Subject: [PATCH] add further description to export payments --- .../Modules/Exports/Services/ExportsPaymentTransactions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php b/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php index a0cd1d3e..61f0e17d 100644 --- a/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsPaymentTransactions.php @@ -109,10 +109,12 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading switch($item->reference){ case 'SHIPPING_FEE': $furtherDescription .= str_replace('X1 Freight Service Charge
', '', $item->name)."\n"; + break; + case 'OVER_WEIGHT_CHARGES': case 'MIN_CBM_CHARGES': $furtherDescription .= $item->name.' '.$item->quantity.' CBM'."\n"; - case 'OVER_WEIGHT_CHARGES': - $furtherDescription .= $item->name.' '.$item->quantity.' CBM'."\n"; + break; + default: $furtherDescription .= $item->name.' '.$item->quantity.' X '.$item->price."\n";