From b5e0af1e66a423f42b2eff02a308c2105c3892e2 Mon Sep 17 00:00:00 2001 From: Edmondlang Date: Tue, 15 Apr 2025 20:16:13 +0800 Subject: [PATCH] remove the time from the "Date" column Request from Azril: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../Exports/Services/ExportsInvoiceTransactions.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsInvoiceTransactions.php b/app/Classes/Modules/Exports/Services/ExportsInvoiceTransactions.php index 85df0be8..d890dfba 100644 --- a/app/Classes/Modules/Exports/Services/ExportsInvoiceTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsInvoiceTransactions.php @@ -94,7 +94,8 @@ class ExportsInvoiceTransactions implements FromQuery, WithHeadings, WithHeading return [ '<>', - $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 [ '<>', - 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, '',