This commit is contained in:
tongfei
2024-03-15 10:11:32 +08:00
parent d7e9bab58a
commit ae3d0d67b2
3 changed files with 9 additions and 4 deletions

View File

@@ -163,6 +163,8 @@ namespace WMS.Web.Domain.Entitys
this.SuccessSync = SyncStatus.Success; this.SuccessSync = SyncStatus.Success;
this.Remark = ""; this.Remark = "";
} }
else
this.SuccessSync = SyncStatus.Fail;
this.OperateId = operateId; this.OperateId = operateId;
this.SyncTime = DateTime.Now; this.SyncTime = DateTime.Now;
} }

View File

@@ -684,7 +684,7 @@ namespace WMS.Web.Domain.Services
//1.1筛选出对应仓库的明细 //1.1筛选出对应仓库的明细
var task_details = task.Details.Where(x => x.StockCode == dto.StockCode).ToList(); var task_details = task.Details.Where(x => x.StockCode == dto.StockCode && x.AccruedQty>0).ToList();
//2.找到箱对应的物料信息:多个箱 //2.找到箱对应的物料信息:多个箱
var boxs = await _boxRepositories.GetEntityListByNos(dto.BoxBillNos); var boxs = await _boxRepositories.GetEntityListByNos(dto.BoxBillNos);

View File

@@ -256,7 +256,7 @@ namespace WMS.Web.Repositories
AvailableQty = s.AccruedQty - s.ReceiveQty, AvailableQty = s.AccruedQty - s.ReceiveQty,
Remark = s.Remark, Remark = s.Remark,
ErpDetailId=s.ErpDetailId ErpDetailId=s.ErpDetailId
}).ToListAsync(); }).Where(x=>x.AvailableQty>0).ToListAsync();
//找箱 //找箱
var task_box = await _context.InstockTaskBox.Where(x => ids.Contains(x.TaskId)) var task_box = await _context.InstockTaskBox.Where(x => ids.Contains(x.TaskId))
@@ -280,7 +280,10 @@ namespace WMS.Web.Repositories
foreach (var item in taskList) foreach (var item in taskList)
{ {
if (item.Details.Count != 0) if (item.Details.Count != 0)
{
response.Add(item); response.Add(item);
}
} }
return response; return response;
} }