Changeset 763


Ignore:
Timestamp:
Feb 12, 2015 4:01:01 PM (10 years ago)
Author:
quyenla
Message:

fix

File:
1 edited

Legend:

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

    r762 r763  
    2222        $provinces = lang('_PROVINCES_');
    2323        // Tinh doanh thu theo tinh theo nam
    24         $sql = "SELECT *,SUM(amount) as total FROM tblpaidlog LEFT JOIN tbluser ON tbluser.us_id=tblpaidlog.us_id WHERE tblpaidlog.paid_time >'" . $input['year'] . "-01-01' AND tblpaidlog.paid_time <'" . ($input['year'] + 1) . "-01-01' GROUP BY tbluser.province";
     24        $sql = "SELECT *,SUM(amount) as total FROM tblpaidlog LEFT JOIN tbluser ON tbluser.us_id=tblpaidlog.us_id WHERE tblpaidlog.paid_time >= '" . $input['year'] . "-01-01' AND tblpaidlog.paid_time <= '" . ($input['year'] + 1) . "-01-01' GROUP BY tbluser.province";
    2525        $query = $this->db->query($sql);
    2626        $dtns = $query->result_array();
Note: See TracChangeset for help on using the changeset viewer.