|
|
@ -568,7 +568,7 @@ namespace BBWYB.Server.Business |
|
|
|
|
|
|
|
foreach (var apo in request.AssociationPurchaseOrderList) |
|
|
|
{ |
|
|
|
if (Math.Abs(apo.PurchaseAmount - apo.AssocationOrderCostDetailList.Sum(aocd => aocd.SkuAmount * aocd.PurchaseQuantity)) > 1) |
|
|
|
if (Math.Abs(apo.PurchaseAmount - apo.AssocationOrderCostDetailList.Sum(aocd => aocd.SkuAmount)) > 1) |
|
|
|
throw new BusinessException($"采购单{apo.PurchaseOrderId}的采购货款与明细采购货款总和误差不能超过1"); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|