From f97651695ddf5a9127265ff6af9bdf6120aaa6b4 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 4 Apr 2024 15:01:45 +0700 Subject: [PATCH] add Note to reminder --- CHANGELOG.md | 4 ++++ system/autoload/Message.php | 9 +++++++++ system/lan/indonesia.json | 7 ++++++- version.json | 2 +- 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cc66a8b..60fd429e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ # CHANGELOG +## 2024.4.4 + +-Data Tables for Customers List by @Focuslinkstech + ## 2024.4.3 - Export logs to CSV by @agstrxyz diff --git a/system/autoload/Message.php b/system/autoload/Message.php index b4c3cccc..ce3198be 100644 --- a/system/autoload/Message.php +++ b/system/autoload/Message.php @@ -117,6 +117,15 @@ class Message $msg = str_replace('[[username]]', $customer['username'], $msg); $msg = str_replace('[[package]]', $package, $msg); $msg = str_replace('[[price]]', $price, $msg); + list($bills, $add_cost) = User::getBills($customer['id']); + if(count($bills)>0){ + $note = ""; + foreach ($bills as $k => $v) { + $note .= $k . " : " . Lang::moneyFormat($v) . "\n"; + } + $note .= Lang::T("Total")." : " . Lang::moneyFormat($add_cost+$price) . "\n"; + $msg = str_replace('[[bills]]', $note, $msg); + } if ($u) { $msg = str_replace('[[expired_date]]', Lang::dateAndTimeFormat($u['expiration'], $u['time']), $msg); } diff --git a/system/lan/indonesia.json b/system/lan/indonesia.json index a6ce6798..6f5e6d5d 100644 --- a/system/lan/indonesia.json +++ b/system/lan/indonesia.json @@ -405,5 +405,10 @@ "day": "hari", "hour": "jam", "minute": "menit", - "second": "Kedua" + "second": "Kedua", + "Account_Type": "Jenis akun", + "Contact": "Kontak", + "Paid": "Dibayar", + "Personal": "Pribadi", + "Coordinates": "Koordinat" } \ No newline at end of file diff --git a/version.json b/version.json index fca95a41..f997fd1b 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2024.4.3" + "version": "2024.4.4" } \ No newline at end of file