|
|
@@ -124,9 +124,10 @@ namespace Business.ResourceExamineManagement
|
|
|
poDetails = poDetails.OrderByDescending(x => x.rarrdate).ToList();
|
|
|
}
|
|
|
var QuantityNumber = 0.00m;
|
|
|
+ List<mo_srm_po_occupy> poOccupy = new List<mo_srm_po_occupy>();
|
|
|
foreach (var item in poDetails)
|
|
|
{
|
|
|
- var poOccupy = poOccupys.Where(x => x.polist_id == item.mysql_id).ToList();
|
|
|
+ poOccupy = poOccupys.Where(x => x.polist_id == item.mysql_id).ToList();
|
|
|
decimal? Qtys = poOccupy.Count > 0 ? poOccupy.Sum(x => x.qty.GetValueOrDefault()) : 0.00m;
|
|
|
//剩余可用数量
|
|
|
var PlanQty = item.qty.GetValueOrDefault() - item.rqty.GetValueOrDefault() - item.esqty.GetValueOrDefault() - Qtys;
|