Commit 4191b4fc by 泽锋 李

fix

parent cafa0bbc
......@@ -1018,7 +1018,7 @@ t1.warehouse_code,
now() as 'push_time',
(case
when t_db.hq_type in ( '国内仓' ) then ifnull(tc1.sum_usable_stock,0) - ifnull(tc2.sum_unshipped_quantity,0)
else ifnull(tnc1.usable_stock,0) - ifnull(tnc2.quantity_unshipped,0)
else ifnull(tnc1.usable_stock,0)
end
) as 'stocks',
t2.buyer_name
......
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