mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-02 01:05:13 +02:00
show Total Customer Balance
This commit is contained in:
parent
5ca81ea92e
commit
5783ea05f9
3 changed files with 40 additions and 38 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue