Beispiel #1
0
 public void Validate()
 {
     foreach (var adjustment in ActualAdjustments)
     {
         InitializeServices(adjustment.AdjdLineNbr != 0);
         var allowableCashDiscount = CashDiscountCalculationService.GetAllowableCashDiscount(adjustment);
         if (adjustment.CuryAdjgPPDAmt > allowableCashDiscount)
         {
             ShowErrorMessage <APAdjust.curyAdjgPPDAmt>(adjustment,
                                                        JointCheckMessages.AmountPaidWithCashDiscountTakenExceedsVendorBalance, allowableCashDiscount);
             ShowErrorOnPersistIfRequired(Graph.Adjustments.Cache, true);
         }
     }
 }