修复bug
This commit is contained in:
@@ -263,8 +263,8 @@ namespace WMS.Web.Domain.Services
|
||||
//店铺
|
||||
var seller = sellerList.Data.FirstOrDefault(f => f.Id == item.Key.SellerId);
|
||||
if (seller == null) continue;
|
||||
var first = resInventory.Data.Where(w => w.SKU == item.Key.SKU
|
||||
&& w.StockId == item.Key.StockId && w.SellerId == item.Key.SellerId).First();
|
||||
var pList = resInventory.Data.Where(w => w.SKU == item.Key.SKU
|
||||
&& w.StockId == item.Key.StockId && w.SellerId == item.Key.SellerId).ToList();
|
||||
var entity = new ProductInventory()
|
||||
{
|
||||
Type = ProductInventoryType.LingXing,
|
||||
@@ -272,8 +272,8 @@ namespace WMS.Web.Domain.Services
|
||||
Customer = seller.Name,
|
||||
OrgCode = stock.ErpOrgCode,
|
||||
StockCode = stock.Code,
|
||||
Qty = first.Product_Valid_Num,//pList.Sum(s => s.Product_Valid_Num),
|
||||
BeforeQty = first.Product_Total//pList.Sum(s => s.Product_Total)
|
||||
Qty = pList.Sum(s => s.Product_Valid_Num),
|
||||
BeforeQty = pList.Sum(s => s.Product_Total)
|
||||
};
|
||||
inventoryList.Add(entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user