Commit 9e98de32 by lizefeng

赵美聪 广州01的缺货 全部下到广州03去

parent 9d4b4a0a
......@@ -337,7 +337,8 @@ where t2.`status`=2 and t1.bailun_sku = t2.bailun_sku and quantity_final_advise=
(
select
t1.bailun_sku,
t1.warehouse_code as 'warehouse_code',
t1.warehouse_code as 'source_warehouse_code',
'BLGZ03' as 'warehouse_code',
-1 as 'quantity_init_advise', -- 原始采购建议数量 new
( (t7.quantity_out_stock) - ( ((case when t7.quantity_out_stock>0 then 0 else (t1.usable_stock+t1.occupy_order) end )) + (t1.quantity_transfer) + (t7.quantity_purchase) ) ) as 'quantity_final_advise', -- 计算moq之后的数量 new
t6.product_inner_code as 'product_inner_code', -- 内部商品编码 new
......
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