add further description to export payments

This commit is contained in:
Omair Saleh
2022-10-19 15:06:41 +08:00
parent becb16c674
commit f05e96725b
@@ -108,13 +108,13 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading
foreach ($transaction->transactionDetails as $item){
switch($item->reference){
case 'SHIPPING_FEE':
$furtherDescription .= str_replace($item->name, 'X1 Freight Service Charge<br>', '').'\r\n';
$furtherDescription .= str_replace($item->name, 'X1 Freight Service Charge<br>', '')."\n";
case 'MIN_CBM_CHARGES':
$furtherDescription .= $item->name.' '.$item->quantity.' CBM'.'\r\n';
$furtherDescription .= $item->name.' '.$item->quantity.' CBM'."\n";
case 'OVER_WEIGHT_CHARGES':
$furtherDescription .= $item->name.' '.$item->quantity.' CBM'.'\r\n';
$furtherDescription .= $item->name.' '.$item->quantity.' CBM'."\n";
default:
$furtherDescription .= $item->name.' '.$item->quantity.' X '.$item->price.'\r\n';
$furtherDescription .= $item->name.' '.$item->quantity.' X '.$item->price."\n";
}