Commit 01d267a3 by lizefeng

'赵美聪','张莹霞','张莹霞1' 的采购sku,只出缺货建议

parent e85415d4
...@@ -41,14 +41,14 @@ dc_auto_turnover as t1, ...@@ -41,14 +41,14 @@ dc_auto_turnover as t1,
dc_base_sku as t2 dc_base_sku as t2
set t1.quantity_init_advise=( t1.quantity_out_stock - ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase ) ) set t1.quantity_init_advise=( t1.quantity_out_stock - ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase ) )
where t1.bailun_sku = t2.bailun_sku where t1.bailun_sku = t2.bailun_sku
and t2.buyer_name='赵美聪' and ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase < t1.quantity_out_stock ) ", commandTimeout: 0); and t2.buyer_name in ('赵美聪','张莹霞','张莹霞1') and ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase < t1.quantity_out_stock ) ", commandTimeout: 0);
// 把 在库+在途>缺货的改成0 // 把 在库+在途>缺货的改成0
_connection.Execute(@" update _connection.Execute(@" update
dc_auto_turnover as t1, dc_auto_turnover as t1,
dc_base_sku as t2 dc_base_sku as t2
set t1.quantity_init_advise=0 set t1.quantity_init_advise=0
where t1.bailun_sku = t2.bailun_sku where t1.bailun_sku = t2.bailun_sku
and t2.buyer_name='赵美聪' and ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase >= t1.quantity_out_stock ) ", commandTimeout: 0); and t2.buyer_name in ('赵美聪','张莹霞','张莹霞1') and ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase >= t1.quantity_out_stock ) ", commandTimeout: 0);
// 生成采购建议 // 生成采购建议
_connection.Execute(@" _connection.Execute(@"
......
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