优化
This commit is contained in:
@@ -163,6 +163,8 @@ namespace WMS.Web.Domain.Entitys
|
||||
this.SuccessSync = SyncStatus.Success;
|
||||
this.Remark = "";
|
||||
}
|
||||
else
|
||||
this.SuccessSync = SyncStatus.Fail;
|
||||
this.OperateId = operateId;
|
||||
this.SyncTime = DateTime.Now;
|
||||
}
|
||||
|
||||
@@ -684,7 +684,7 @@ namespace WMS.Web.Domain.Services
|
||||
|
||||
|
||||
//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.找到箱对应的物料信息:多个箱
|
||||
var boxs = await _boxRepositories.GetEntityListByNos(dto.BoxBillNos);
|
||||
|
||||
@@ -256,7 +256,7 @@ namespace WMS.Web.Repositories
|
||||
AvailableQty = s.AccruedQty - s.ReceiveQty,
|
||||
Remark = s.Remark,
|
||||
ErpDetailId=s.ErpDetailId
|
||||
}).ToListAsync();
|
||||
}).Where(x=>x.AvailableQty>0).ToListAsync();
|
||||
|
||||
//找箱
|
||||
var task_box = await _context.InstockTaskBox.Where(x => ids.Contains(x.TaskId))
|
||||
@@ -280,8 +280,11 @@ namespace WMS.Web.Repositories
|
||||
foreach (var item in taskList)
|
||||
{
|
||||
if (item.Details.Count != 0)
|
||||
{
|
||||
response.Add(item);
|
||||
}
|
||||
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user