forked from kevinowino869/mitrobill
show Total Customer Balance
This commit is contained in:
@ -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';
|
||||
|
Reference in New Issue
Block a user