Fixing Pagination, more Simple

This commit is contained in:
Ibnu Maksum
2024-03-27 09:44:48 +07:00
parent e11ab5ba01
commit 37a7da614e
16 changed files with 166 additions and 233 deletions

View File

@ -44,6 +44,7 @@ class Package
foreach ($bills as $k => $v) {
$note .= $k . " : " . Lang::moneyFormat($v) . "\n";
}
$note .= $p['name_plan'] . " : " . Lang::moneyFormat($p['price']) . "\n";
}
}
@ -520,7 +521,9 @@ class Package
$t->plan_name = $p['name_plan'];
if ($p['validity_unit'] == 'Period') {
// Postpaid price always zero for first time
$t->price = 0 + $add_cost;
$note = '';
$bills = [];
$t->price = 0;
} else {
$t->price = $p['price'] + $add_cost;
}