bug修复
This commit is contained in:
@@ -251,8 +251,13 @@ namespace WMS.Web.Domain.Services
|
|||||||
{
|
{
|
||||||
task.Details.ForEach(x =>
|
task.Details.ForEach(x =>
|
||||||
{
|
{
|
||||||
x.DeliveredQty = x.ReceiveQty;
|
var current_entityDets= dto.Details.Where(t => t.ErpDetailId == x.ErpDetailId).ToList();
|
||||||
x.RealityQty = x.ReceiveQty;
|
if (current_entityDets != null && current_entityDets.Count != 0 && x.ErpDetailId == current_entityDets.FirstOrDefault().ErpDetailId)
|
||||||
|
{
|
||||||
|
var current_entityDet_matQty = current_entityDets.Sum(x => x.Qty);
|
||||||
|
x.DeliveredQty = x.ReceiveQty;
|
||||||
|
x.RealityQty = x.RealityQty + current_entityDet_matQty;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
task.Shelf(loginInfo.UserInfo.StaffId);
|
task.Shelf(loginInfo.UserInfo.StaffId);
|
||||||
task = await _inStockTaskRepositories.Update(task, isTransaction);
|
task = await _inStockTaskRepositories.Update(task, isTransaction);
|
||||||
@@ -354,11 +359,13 @@ namespace WMS.Web.Domain.Services
|
|||||||
{
|
{
|
||||||
task.Details.ForEach(x =>
|
task.Details.ForEach(x =>
|
||||||
{
|
{
|
||||||
var current_entityDet_matQty = entity.Details.Where(t => t.MaterialId == x.MaterialId).Sum(t => t.Qty);
|
var current_entityDets = entity.Details.Where(t => t.ErpDetailId == x.ErpDetailId).ToList();
|
||||||
if (x.AccruedQty > current_entityDet_matQty)
|
if (current_entityDets != null && current_entityDets.Count != 0 && x.ErpDetailId == current_entityDets.FirstOrDefault().ErpDetailId)
|
||||||
{
|
{
|
||||||
|
var current_entityDet_matQty = current_entityDets.Sum(x => x.Qty);
|
||||||
x.ReceiveQty = x.ReceiveQty + current_entityDet_matQty;
|
x.ReceiveQty = x.ReceiveQty + current_entityDet_matQty;
|
||||||
x.DeliveredQty = x.ReceiveQty;
|
x.DeliveredQty = x.ReceiveQty;
|
||||||
|
x.RealityQty = x.RealityQty + current_entityDet_matQty;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
task.NoPurchaseShelf(loginInfo.UserInfo.StaffId);
|
task.NoPurchaseShelf(loginInfo.UserInfo.StaffId);
|
||||||
|
|||||||
Reference in New Issue
Block a user