- Timestamp:
- Mar 27, 2015 9:49:55 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/models/reportmodel.php
r818 r838 33 33 34 34 // tinh doanh thu theo thang 35 $from = "tblpaidlog.paid_time >= '" . $input ['year'] . "-" . $input ['month'] . "-01 00:00:00'"; 35 36 $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"; 36 37 $query = $this->db->query ( $sql ); … … 133 134 $data['totalDtn'] = $totalDtn; 134 135 135 //return $provinces;136 136 return $data; 137 137 }
Note: See TracChangeset
for help on using the changeset viewer.