show Total Customer Balance

This commit is contained in:
Ibnu Maksum
2024-07-26 15:55:17 +07:00
parent 5ca81ea92e
commit 5783ea05f9
3 changed files with 40 additions and 38 deletions

View File

@ -55,6 +55,10 @@ if ($imonth == '') {
}
$ui->assign('imonth', $imonth);
$cb = ORM::for_table('tbl_customers')->whereGte('balance', 0)->sum('balance');
$ui->assign('cb', $cb);
$u_act = ORM::for_table('tbl_user_recharges')->where('status', 'on')->count();
if (empty($u_act)) {
$u_act = '0';