出库增加箱对应的仓位
This commit is contained in:
@@ -41,6 +41,11 @@ namespace WMS.Web.Core.Dto.OutStock
|
||||
[Required(ErrorMessage = "箱不能为空")]
|
||||
public int BoxId { get; set; }
|
||||
/// <summary>
|
||||
/// 仓位不能为空
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "箱不能为空")]
|
||||
public int SubStockId { get; set; }
|
||||
/// <summary>
|
||||
/// 序列号集
|
||||
/// </summary>
|
||||
public List<string> SerialNumbers { get; set; } = new List<string>();
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace WMS.Web.Domain.Services
|
||||
BoxId = boxId,
|
||||
InventoryInOutMethod = dto.Method,
|
||||
StockCode = outStockTask.StockCode,
|
||||
SubStockId = 0,// outStockTask.Details.First().SubStockId,
|
||||
SubStockId = dto.Details.FirstOrDefault(f => f.BoxId == boxId)?.SubStockId ?? 0,// outStockTask.Details.First().SubStockId,
|
||||
Details = inventoryDetail
|
||||
};
|
||||
inventoryList.Add(inventory);
|
||||
|
||||
Reference in New Issue
Block a user