Commit 51118830 by 泽锋 李

wish 国内仓 改零算法:国内仓全部0库存 且 ( 全部停止监控 or 停售 )

parent 790aed72
...@@ -1234,7 +1234,7 @@ and ...@@ -1234,7 +1234,7 @@ and
( (
case case
when t_db.hq_type not in ( '国内仓' ) and t2.buyer_name in ('张莹霞','张莹霞1') then ifnull(tnc1.usable_stock,0) > 1 when t_db.hq_type not in ( '国内仓' ) and t2.buyer_name in ('张莹霞','张莹霞1') then ifnull(tnc1.usable_stock,0) > 1
when t_db.hq_type not in ( '国内仓' ) then ifnull(tnc1.usable_stock,0) > 0 when t_db.hq_type not in ( '国内仓' ) then ifnull(tnc1.usable_stock,0) > 0
else ifnull(t3.quantity_unshipped,0) < ifnull(t_stock.usable_stock,0) else ifnull(t3.quantity_unshipped,0) < ifnull(t_stock.usable_stock,0)
end end
) )
......
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