remove the time from the "Date" column

Request from Azril:

I’ve attached 3 files below:
AutoMapping Excel – downloaded from the Exchange Portal
Paid Invoice Excel – from the IzyIM Portal
Aging Report Excel – also from the IzyIM Portal
What we need from you is to remove the time from the "Date" column in each file. We only need the date value moving forward.
This commit is contained in:
Edmondlang
2025-04-15 20:16:13 +08:00
parent e31f708edd
commit b5e0af1e66
@@ -94,7 +94,8 @@ class ExportsInvoiceTransactions implements FromQuery, WithHeadings, WithHeading
return [
'<<New>>',
$row->updated_at->format('m/d/Y H:m'),
// $row->updated_at->format('m/d/Y H:m'),
$row->updated_at->format('m/d/Y'),
$company->debtor,
$row->type === TransactionType::PAYMENT ? $booking->marking : $company->reference,
'',
@@ -129,7 +130,8 @@ class ExportsInvoiceTransactions implements FromQuery, WithHeadings, WithHeading
return [
'<<New>>',
Carbon::parse($row['created_at'])->format('m/d/Y H:m'),
// Carbon::parse($row['created_at'])->format('m/d/Y H:m'),
Carbon::parse($row['created_at'])->format('m/d/Y'),
$row['debtor_code'],
$row['type'] === ShippingTransactionType::PAYMENT ? $row['order_reference'] : $row['marking'],
'',
@@ -149,7 +151,8 @@ class ExportsInvoiceTransactions implements FromQuery, WithHeadings, WithHeading
return [
'Transaction Not Found',
$transaction->posting_date->format('m/d/Y H:m'),
// $transaction->posting_date->format('m/d/Y H:m'),
$transaction->posting_date->format('m/d/Y'),
$transaction->transaction_description.' - '.$transaction->transaction_description_2,
$statementTransactionOwner->system,
'',