From e02bf9863fcad8ad55174ca5ae1cb30b8f7e1c38 Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Fri, 25 Oct 2024 14:38:04 +0700 Subject: [PATCH] fix [[trx_date]] --- system/autoload/Message.php | 1 + system/autoload/Package.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/system/autoload/Message.php b/system/autoload/Message.php index 30908c3f..cff8db31 100644 --- a/system/autoload/Message.php +++ b/system/autoload/Message.php @@ -235,6 +235,7 @@ class Message $textInvoice = str_replace('[[phone]]', $config['phone'], $textInvoice); $textInvoice = str_replace('[[invoice]]', $trx['invoice'], $textInvoice); $textInvoice = str_replace('[[date]]', Lang::dateAndTimeFormat($trx['recharged_on'], $trx['recharged_time']), $textInvoice); + $textInvoice = str_replace('[[trx_date]]', Lang::dateAndTimeFormat($trx['recharged_on'], $trx['recharged_time']), $textInvoice); if (!empty($trx['note'])) { $textInvoice = str_replace('[[note]]', $trx['note'], $textInvoice); } diff --git a/system/autoload/Package.php b/system/autoload/Package.php index 09f568d9..456dc0b1 100644 --- a/system/autoload/Package.php +++ b/system/autoload/Package.php @@ -475,7 +475,8 @@ class Package $textInvoice = str_replace('[[address]]', $config['address'], $textInvoice); $textInvoice = str_replace('[[phone]]', $config['phone'], $textInvoice); $textInvoice = str_replace('[[invoice]]', $inv, $textInvoice); - $textInvoice = str_replace('[[date]]', Lang::dateTimeFormat(date("Y-m-d")), $textInvoice); + $textInvoice = str_replace('[[date]]', Lang::dateTimeFormat(date("Y-m-d H:i:s")), $textInvoice); + $textInvoice = str_replace('[[trx_date]]', Lang::dateTimeFormat(date("Y-m-d H:i:s")), $textInvoice); $textInvoice = str_replace('[[payment_gateway]]', $gateway, $textInvoice); $textInvoice = str_replace('[[payment_channel]]', $channel, $textInvoice); $textInvoice = str_replace('[[type]]', 'Balance', $textInvoice);