This commit is contained in:
tongfei
2024-03-21 17:48:43 +08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ namespace WMS.Web.Domain.Services
var boxInventoryDetails = boxInventoryList.SelectMany(s => s.Details).ToList();
foreach (var b in boxInventoryDetails)
{
if (b.Qty <= 0) continue;
var num = boxInventoryDetails.Where(w => w.MaterialNumber == b.MaterialNumber).Sum(s => s.Qty);
var taskDetail = outStockTask.Details.FirstOrDefault(f => f.MaterialNumber == b.MaterialNumber);
if (taskDetail == null) return Result.ReFailure(ResultCodes.BoxOutStockTaskMaterialError);

View File

@@ -38,7 +38,7 @@ namespace WMS.Web.Domain.Values
public static ValueTuple<int, string> OutStockTaskRepeal = (70005, "任务单已作废");
public static ValueTuple<int, string> MergeNumberError = (70006, "必须选择两个及以上的单合并");
public static ValueTuple<int, string> BoxNumberError= (70007, "该批箱数量不符,不能出库");
public static ValueTuple<int, string> BoxOutStockTaskMaterialError = (70008, "该批箱物料出库单中不存在,不能出库");
public static ValueTuple<int, string> BoxOutStockTaskMaterialError = (70008, "该批箱物料出库单中不存在,不能出库");
public static ValueTuple<int, string> BoxOutStockTaskBoxError = (70009, "存在重复的箱号,请清空后重新操作");
public static ValueTuple<int, string> BoxIsTrueShelf = (80000, "箱号已上架入库");