Ignore:
Timestamp:
Mar 27, 2015 9:49:55 AM (10 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/models/reportmodel.php

    r818 r838  
    3333               
    3434                // tinh doanh thu theo thang
     35                $from = "tblpaidlog.paid_time >= '" . $input ['year'] . "-" . $input ['month'] . "-01 00:00:00'";
    3536                $sql = "SELECT *,SUM(amount) as total FROM tblpaidlog LEFT JOIN tbluser ON tbluser.us_id=tblpaidlog.us_id WHERE $from AND $to  GROUP BY tbluser.province";
    3637                $query = $this->db->query ( $sql );
     
    133134                $data['totalDtn'] = $totalDtn;
    134135               
    135                 //return $provinces;
    136136                return $data;
    137137        }
Note: See TracChangeset for help on using the changeset viewer.