mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-07-24 04:44:28 +02:00
fix sending notif package
This commit is contained in:
parent
71437b9a0e
commit
006693982b
2 changed files with 2 additions and 9 deletions
|
@ -118,12 +118,11 @@ class Message
|
|||
$msg = str_replace('[[package]]', $package, $msg);
|
||||
$msg = str_replace('[[price]]', $price, $msg);
|
||||
list($bills, $add_cost) = User::getBills($customer['id']);
|
||||
if(count($bills)>0){
|
||||
if($add_cost>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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue