修复bug
This commit is contained in:
@@ -292,6 +292,7 @@ namespace WMS.Web.Repositories
|
|||||||
.FirstOrDefaultAsync(w => serialNumber.Equals(w.serial.SerialNumber));
|
.FirstOrDefaultAsync(w => serialNumber.Equals(w.serial.SerialNumber));
|
||||||
if (entity == null || entity.serial == null) return null;
|
if (entity == null || entity.serial == null) return null;
|
||||||
response.IsOldOps = true;
|
response.IsOldOps = true;
|
||||||
|
response.IsBoxInventory = true;//如果是老ops序列号 默认有库存
|
||||||
response.BoxId = entity.serial.BoxId;
|
response.BoxId = entity.serial.BoxId;
|
||||||
response.BoxBillNo = entity?.box?.BoxBillNo ?? "";
|
response.BoxBillNo = entity?.box?.BoxBillNo ?? "";
|
||||||
response.SubStockCode = entity?.boxInventory?.SubStockCode ?? "";
|
response.SubStockCode = entity?.boxInventory?.SubStockCode ?? "";
|
||||||
@@ -299,8 +300,8 @@ namespace WMS.Web.Repositories
|
|||||||
response.MaterialName = _erpBasicDataExtendService.GetMaterialName(materials, entity.serial.MaterialNumber);
|
response.MaterialName = _erpBasicDataExtendService.GetMaterialName(materials, entity.serial.MaterialNumber);
|
||||||
response.MaterialNumber = entity.serial.MaterialNumber;
|
response.MaterialNumber = entity.serial.MaterialNumber;
|
||||||
response.Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, entity.serial.MaterialNumber);
|
response.Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, entity.serial.MaterialNumber);
|
||||||
if (entity.boxInventory != null)
|
//if (entity.boxInventory != null)
|
||||||
response.IsBoxInventory = entity.boxInventory.Details.SelectMany(s => s.SerialNumbers).Where(w => serialNumber.Equals(w)).Count() >= 1 ? true : false;
|
// response.IsBoxInventory = entity.boxInventory.Details.SelectMany(s => s.SerialNumbers).Where(w => serialNumber.Equals(w)).Count() >= 1 ? true : false;
|
||||||
|
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
|||||||
Reference in New Issue
Block a user