1
This commit is contained in:
@@ -150,7 +150,8 @@ namespace Tnb.WarehouseMgr
|
||||
carryMats = carryMats.OrderBy(o => o.create_time).GroupBy(g => new { g.carry_id, g.material_id, g.code_batch })
|
||||
.Select(x =>
|
||||
{
|
||||
WmsCarryMat carryMat = new();
|
||||
var arr = x.ToArray();
|
||||
WmsCarryMat carryMat = arr[^arr.Length];
|
||||
carryMat.need_qty = x.Sum(d => d.need_qty);
|
||||
return carryMat;
|
||||
})
|
||||
@@ -421,8 +422,8 @@ namespace Tnb.WarehouseMgr
|
||||
carryMats = carryMats.OrderBy(o => o.create_time).GroupBy(g => new { g.carry_id, g.material_id, g.code_batch })
|
||||
.Select(x =>
|
||||
{
|
||||
WmsCarryMat carryMat = new();
|
||||
carryMat.carry_id = x.Key.carry_id;
|
||||
var arr = x.ToArray();
|
||||
WmsCarryMat carryMat = arr[^arr.Length];
|
||||
carryMat.need_qty = x.Sum(d => d.need_qty);
|
||||
return carryMat;
|
||||
})
|
||||
|
||||
@@ -136,8 +136,9 @@ namespace Tnb.WarehouseMgr
|
||||
carryMats = carryMats.OrderBy(o => o.create_time).GroupBy(g => new { g.carry_id, g.material_id, g.code_batch })
|
||||
.Select(x =>
|
||||
{
|
||||
WmsCarryMat carryMat = new();
|
||||
carryMat.need_qty = x.Sum(d => d.need_qty);
|
||||
var arr = x.ToArray();
|
||||
WmsCarryMat carryMat = arr[^arr.Length];
|
||||
carryMat.need_qty = arr.Sum(d => d.need_qty);
|
||||
return carryMat;
|
||||
})
|
||||
.ToList();
|
||||
@@ -209,7 +210,7 @@ namespace Tnb.WarehouseMgr
|
||||
if (sPoint != null && ePoint != null)
|
||||
{
|
||||
var points = await _wareHouseService.PathAlgorithms(sPoint.id, ePoint.id);
|
||||
if (points?.Count> 0)
|
||||
if (points?.Count > 0)
|
||||
{
|
||||
locIds.AddRange(points.Select(x => x.location_id).ToList()!);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user