Commit efbdcdc4 by yinyong

数据中心--采购在途计算新增负数判断条件

parent 72f12f0a
......@@ -770,7 +770,7 @@
tb1.bailun_sku AS bailun_sku,
tb1.warehouse_code AS warehouse_code,
tb1.purchase_id AS purchase_id,
sum( ( tb1.count - IFNULL( tb2.count, 0 ) ) ) AS count,
sum( if((tb1.count - IFNULL( tb2.count, 0 )) < 0, 0, (tb1.count - IFNULL( tb2.count, 0 ))) ) AS count,
price
FROM
(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment