mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
update payment export itemization
This commit is contained in:
@@ -138,7 +138,6 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading
|
||||
$firstItem = true;
|
||||
$rows = [];
|
||||
foreach ($transactionDetails as $detail) {
|
||||
dd($detail->tax_percentage);
|
||||
// Prepare each row based on the transaction detail
|
||||
$rows[] = [
|
||||
$firstItem ? '<<New>>' : '',
|
||||
@@ -153,8 +152,8 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading
|
||||
'CIEF',
|
||||
$detail->quantity,
|
||||
$detail->price,
|
||||
$detail->tax_percentage !== 0 ? 'SV-6' : '',
|
||||
$detail->tax_percentage !== 0 ? $detail->amount : 0,
|
||||
floatval($detail->tax_percentage) > 0 ? 'SV-6' : '',
|
||||
floatval($detail->tax_percentage) > 0 ? $detail->amount : 0,
|
||||
$detail->tax_percentage,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user