コード例 #1
0
 protected virtual void _(Events.FieldUpdating <APRegister.approved> args)
 {
     if (args.Row is APRegister payment && IsPaymentApproved(args.NewValue))
     {
         lienWaiverProcessingValidationService.ValidateLienWaivers(payment,
                                                                   LienWaiverSetup.Current?.ShouldStopPayments);
     }
 }
コード例 #2
0
 public virtual void AssignNumbers(APPaymentEntry paymentEntry, APPayment payment, ref string nextCheckNumber,
                                   bool skipStubs = false, AssignNumbersDelegate baseHandler = null)
 {
     lienWaiverProcessingValidationService.ValidateLienWaivers(payment,
                                                               LienWaiverSetup.Current?.ShouldStopPayments);
     baseHandler?.Invoke(paymentEntry, payment, ref nextCheckNumber, skipStubs);
 }
コード例 #3
0
 private List <APRegister> ReleaseCheckOrVoidCheck(JournalEntry journalEntry, APRegister document,
                                                   bool isPreBooking, out List <INRegister> documents, ReleaseDocProcDelegate baseHandler)
 {
     lienWaiverProcessingValidationService.ValidateLienWaivers(document,
                                                               LienWaiverSetup.Current?.ShouldStopPayments);
     using (var scope = new PXTransactionScope())
     {
         ReleaseJointPayeePayments(document);
         var result = baseHandler(journalEntry, document, isPreBooking, out documents);
         scope.Complete();
         Base.Persist();
         return(result);
     }
 }