Commit 1d4705f0 by 泽锋 李

张莹霞的缺货,至少下5个

parent 8527bbff
...@@ -209,6 +209,7 @@ where t2.`status`=2 and t1.bailun_sku = t2.bailun_sku and quantity_final_advise= ...@@ -209,6 +209,7 @@ where t2.`status`=2 and t1.bailun_sku = t2.bailun_sku and quantity_final_advise=
/// <summary> /// <summary>
/// 导入缺货明细 张莹霞 /// 导入缺货明细 张莹霞
/// 至少下5个
/// </summary> /// </summary>
/// <param name="mainID"></param> /// <param name="mainID"></param>
public static int ImportJITShortageDetailed(int mainID) public static int ImportJITShortageDetailed(int mainID)
...@@ -233,7 +234,9 @@ where t2.`status`=2 and t1.bailun_sku = t2.bailun_sku and quantity_final_advise= ...@@ -233,7 +234,9 @@ where t2.`status`=2 and t1.bailun_sku = t2.bailun_sku and quantity_final_advise=
t1.bailun_sku, t1.bailun_sku,
'GZBLWH' as 'warehouse_code', 'GZBLWH' as 'warehouse_code',
-1 as 'quantity_init_advise', -- 原始采购建议数量 new -1 as 'quantity_init_advise', -- 原始采购建议数量 new
( sum(t7.quantity_out_stock) - ( sum((case when t7.quantity_out_stock>0 then 0 else (t1.usable_stock+t1.occupy_order) end )) + sum(t1.quantity_transfer) + sum(t7.quantity_purchase) ) ) as 'quantity_final_advise', -- 计算moq之后的数量 new GREATEST(5,
( sum(t7.quantity_out_stock) - ( sum((case when t7.quantity_out_stock>0 then 0 else (t1.usable_stock+t1.occupy_order) end )) + sum(t1.quantity_transfer) + sum(t7.quantity_purchase) ) )
) as 'quantity_final_advise', -- 计算moq之后的数量 new
t6.product_inner_code as 'product_inner_code', -- 内部商品编码 new t6.product_inner_code as 'product_inner_code', -- 内部商品编码 new
0 as 'goods_quantity_init_advise', -- 商品本次的建议下单数量 new 0 as 'goods_quantity_init_advise', -- 商品本次的建议下单数量 new
0 as 'goods_moq', -- 商品的moq new 0 as 'goods_moq', -- 商品的moq new
......
...@@ -183,6 +183,7 @@ namespace AutoTurnOver.Services ...@@ -183,6 +183,7 @@ namespace AutoTurnOver.Services
} }
/// <summary> /// <summary>
/// 速卖通的挑出来单独下 /// 速卖通的挑出来单独下
/// </summary> /// </summary>
......
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