修复bug

This commit is contained in:
18942506660
2024-03-21 16:53:12 +08:00
parent 9b2e856a76
commit 2a23ff1bda
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);