Ignore:
Timestamp:
Nov 20, 2014 4:49:30 PM (11 years ago)
Author:
quyenla
Message:

HOME

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/controllers/report.php

    r503 r586  
    5959        $charts['last_month'] = array(0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0);
    6060        $charts['this_month'] = array(0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0);
     61
    6162        foreach ($paidlogs as $paidlog) {
    6263
     
    7374                $revenue['last_year']+=$paidlog['amount'];
    7475            }
     76           
     77           
    7578            if (($paidlog['time'] < $lastmonth + (7 * 24 * 60 * 60)) && ($paidlog['time'] > $lastmonth)) {
    7679                $charts['last_month'][0]+=$paidlog['amount'];
     
    8689            }
    8790            if (($paidlog['time'] < $thismonth) && ($paidlog['time'] > $lastmonth + (28 * 24 * 60 * 60))) {
    88                 $charts['last_month'][3]+=$paidlog['amount'];
    89             }
     91                $charts['last_month'][4]+=$paidlog['amount'];
     92            }
     93           
    9094
    9195            if (($paidlog['time'] < $thismonth + (7 * 24 * 60 * 60)) && ($paidlog['time'] > $thismonth)) {
     
    102106            }
    103107            if (($paidlog['time'] < $thismonth + (31 * 24 * 60 * 60)) && ($paidlog['time'] > $thismonth + (28 * 24 * 60 * 60))) {
    104                 $charts['this_month'][3]+=$paidlog['amount'];
    105             }
     108                $charts['this_month'][4]+=$paidlog['amount'];
     109            }
     110           
    106111        }
    107112        $max = 0;
Note: See TracChangeset for help on using the changeset viewer.