Commit 9d34e490 by 泽锋 李

fix

parent bd9f8df0
...@@ -1061,7 +1061,8 @@ and t1.platform=@platform and t1.has_return_goods=0 ...@@ -1061,7 +1061,8 @@ and t1.platform=@platform and t1.has_return_goods=0
and and
( (
case case
when t_db.hq_type not in ( '国内仓' ) then ifnull(tnc1.usable_stock,0) - ifnull(tnc2.quantity_unshipped,0) > 0 when t_db.hq_type not in ( '国内仓' ) and t2.buy_name in ('张莹霞','张莹霞1') then ifnull(tnc1.usable_stock,0) > 1
when t_db.hq_type not in ( '国内仓' ) then ifnull(tnc1.usable_stock,0) > 0
else ifnull(tc2.sum_unshipped_quantity,0) < ifnull(tc1.sum_usable_stock,0) else ifnull(tc2.sum_unshipped_quantity,0) < ifnull(tc1.sum_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