add Note to reminder

This commit is contained in:
Ibnu Maksum 2024-04-04 15:01:45 +07:00
parent 72c3ff6750
commit f97651695d
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
4 changed files with 20 additions and 2 deletions

View file

@ -2,6 +2,10 @@
# CHANGELOG
## 2024.4.4
-Data Tables for Customers List by @Focuslinkstech
## 2024.4.3
- Export logs to CSV by @agstrxyz

View file

@ -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);
}

View file

@ -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"
}

View file

@ -1,3 +1,3 @@
{
"version": "2024.4.3"
"version": "2024.4.4"
}