Changeset 12022 for branches/dev/html/admin/total/index.php
- Timestamp:
- 2007/03/29 14:28:54 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/admin/total/index.php
r57 r12022 617 617 list($where, $arrval) = lfGetWhereMember('create_date', $sdate, $edate, $type); 618 618 619 $sql = "SELECT T1.product_id, T1.product_code, T 2.name, T1.products_count, T1.order_count, T1.price, T1.total ";619 $sql = "SELECT T1.product_id, T1.product_code, T1.product_name, T1.products_count, T1.order_count, T1.price, T1.total "; 620 620 $sql.= "FROM ( "; 621 621 $sql.= "SELECT product_id, product_code, price, "; … … 626 626 $sql.= "GROUP BY product_id, product_code, price "; 627 627 $sql.= ") "; 628 $sql.= " AS T1 LEFT JOIN dtb_products AS T2 USING (product_id) WHERE T2.name IS NOT NULL AND status = 1ORDER BY T1.total DESC ";628 $sql.= "ORDER BY T1.total DESC "; 629 629 630 630 if($mode != "csv") {
Note: See TracChangeset
for help on using the changeset viewer.