aa
This commit is contained in:
@@ -87,7 +87,7 @@ func GetStatisticsReportForOrders(db *DaoDB, storeIDs, vendorIDs []int, fromDate
|
||||
SELECT ss.*,
|
||||
ss.earning_price1 - IFNULL(ss.afs_shop_price,0) earning_price,
|
||||
ss.total_shop_money1 - IFNULL(ss.afs_total_money,0) total_shop_money,
|
||||
ss.total_gross_profit1 + IFNULL(ss.afs_shop_price,0) - IFNULL(ss.afs_total_money,0)-ss.order_counts*0.8*100 total_gross_profit
|
||||
ss.total_gross_profit1 + IFNULL(ss.afs_shop_price,0) - IFNULL(ss.afs_total_money,0) - ss.order_counts*0.8*100 total_gross_profit
|
||||
FROM (
|
||||
SELECT
|
||||
IF(a.jx_store_id <> 0,a.jx_store_id,a.store_id) store_id,
|
||||
|
||||
Reference in New Issue
Block a user