fix customer count

This commit is contained in:
Ibnu Maksum 2023-09-13 15:50:20 +07:00
parent 5fc2190f4a
commit 309bbc0059
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -31,23 +31,23 @@ if ($imonth == '') {
$ui->assign('imonth', $imonth);
$u_act = ORM::for_table('tbl_user_recharges')->where('status', 'on')->count();
if ($u_act == '') {
if (empty($u_act)) {
$u_act = '0';
}
$ui->assign('u_act', $u_act);
$u_all = ORM::for_table('tbl_user_recharges')->count();
if ($u_all == '') {
if (empty($u_all)) {
$u_all = '0';
}
$ui->assign('u_all', $u_all);
$c_all = ORM::for_table('tbl_customers')->count();
if ($u_all == '') {
if (empty($c_all)) {
$c_all = '0';
}
$ui->assign('c_all', $u_all);
$ui->assign('c_all', $c_all);
//user expire
$expire = ORM::for_table('tbl_user_recharges')->where('expiration', $mdate)->order_by_desc('id')->find_many();