This commit is contained in:
2025-05-15 23:43:24 +08:00
parent c9c27ac3dc
commit 0ecbc73c0b
5 changed files with 6 additions and 6 deletions

View File

@@ -362,14 +362,14 @@ namespace MyCode.Project.Services.Implementation
list.ForEach(t =>
{
var allqty = allInvoiceOrderItem.Where(h => h.PurchaseOrderItemId == t.Id ).Sum(h => h.Qty).SafeValue();
//var allqty = allInvoiceOrderItem.Where(h => h.PurchaseOrderItemId == t.Id ).Sum(h => h.Qty).SafeValue();
var temp = updateList.Where(h => h.Id == t.Id).FirstOrDefault();
if (temp != null)
{
var purchaseOrder = orderHeadList.FirstOrDefault(h=>h.FiD==t.Fid);
if (purchaseOrder == null)
throw new BaseException("找不到对应的采购订单主表信息");
if ((temp.Qty ) > (t.Qty - t.FReceiveQty))
if ((temp.Qty ) > (t.Qty - t.MSSReceiveQty))
{
string error = $@"{t.MaterialName}";
errorList.Add(error);