update invoice export format

This commit is contained in:
omair saleh
2022-03-21 10:39:33 +08:00
parent 280cf93731
commit 34df505d71
2 changed files with 23 additions and 47 deletions
@@ -32,20 +32,14 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading
'DocNo',
'DocDate',
'DebtorCode',
'Ref',
'Note',
'DebtorName',
'CurrencyCode',
'ShipInfo',
'Numbering',
'AccNo',
'ItemCode',
'DetailDescription',
'FutherDEscription',
'YourPONo',
'YourPODate',
'ProjNo',
'UOM',
'Qty',
'UnitPrice',
'SubTotal'
'AccNo'
];
}
@@ -96,23 +90,17 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading
$company = $booking->company()->first();
return [
'<<New>>',
'<<New>>',
$transaction->updated_at->format('d/m/Y'),
$company->debtor,
'',
'',
$booking->marking,
'',
'500-0000',
$company->debtor,
'',
'MYR',
$booking->marking,
'',
'PLEASE REFER TO THE ATTACHED APPENDIX REF ' . $booking->marking,
'',
'',
'',
'',
'',
1,
1,
$transaction->amount,
$transaction->amount,
'500-0000'
];
}
}
@@ -32,20 +32,14 @@ class ExportsWalletTransactions implements FromQuery, WithHeadings, WithHeadingR
'DocNo',
'DocDate',
'DebtorCode',
'Ref',
'Note',
'DebtorName',
'CurrencyCode',
'ShipInfo',
'Numbering',
'AccNo',
'ItemCode',
'DetailDescription',
'FutherDEscription',
'YourPONo',
'YourPODate',
'ProjNo',
'UOM',
'Qty',
'UnitPrice',
'SubTotal'
'AccNo'
];
}
@@ -95,23 +89,17 @@ class ExportsWalletTransactions implements FromQuery, WithHeadings, WithHeadingR
$company = $transaction->owner->owner;
return [
'<<New>>',
'<<New>>',
$transaction->updated_at->format('d/m/Y'),
$company->debtor,
'',
$company->debtor,
'',
$transaction->bill_no,
'',
'500-0000',
'MYR',
$transaction->reference,
'W1',
'CREDIT SALES',
'',
'',
'',
'',
'',
1,
1,
$transaction->amount,
$transaction->amount,
'500-0000'
];
}
}