mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
additional cost can be minus
This commit is contained in:
parent
aa0432df38
commit
229eae5c8f
7 changed files with 10 additions and 10 deletions
|
@ -174,7 +174,7 @@ class Message
|
|||
$msg = str_replace('[[package]]', $package, $msg);
|
||||
$msg = str_replace('[[price]]', Lang::moneyFormat($price), $msg);
|
||||
list($bills, $add_cost) = User::getBills($customer['id']);
|
||||
if ($add_cost > 0) {
|
||||
if ($add_cost != 0) {
|
||||
$note = "";
|
||||
foreach ($bills as $k => $v) {
|
||||
$note .= $k . " : " . Lang::moneyFormat($v) . "\n";
|
||||
|
|
|
@ -64,7 +64,7 @@ class Package
|
|||
} else {
|
||||
// Additional cost
|
||||
list($bills, $add_cost) = User::getBills($id_customer);
|
||||
if ($add_cost > 0 && $router_name != 'balance') {
|
||||
if ($add_cost != 0 && $router_name != 'balance') {
|
||||
foreach ($bills as $k => $v) {
|
||||
$note .= $k . " : " . Lang::moneyFormat($v) . "\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue