Commit 5a2043cc by 泽锋 李

子sku分摊库容需求的时候,优先使用主sku的库容

parent 079584c4
...@@ -654,7 +654,7 @@ and t1.quantity_init_advise>=0 and ( t3.buyer_name in ('张莹霞1') and t1.ware ...@@ -654,7 +654,7 @@ and t1.quantity_init_advise>=0 and ( t3.buyer_name in ('张莹霞1') and t1.ware
{ {
foreach (var item in mother_datas) foreach (var item in mother_datas)
{ {
var itemMaps = maps.Where(s => s.mother_sku_warehouse_code == item.bailun_sku_warehouse_code).ToList(); var itemMaps = maps.Where(s => s.mother_sku_warehouse_code == item.bailun_sku_warehouse_code).OrderByDescending(s => s.is_main).ToList();
if (itemMaps != null && itemMaps.Count >= 1) if (itemMaps != null && itemMaps.Count >= 1)
{ {
// 查询这些子sku的库容 // 查询这些子sku的库容
......
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