protected virtual void _(Events.FieldUpdating <APRegister.approved> args) { if (args.Row is APRegister payment && IsPaymentApproved(args.NewValue)) { lienWaiverProcessingValidationService.ValidateLienWaivers(payment, LienWaiverSetup.Current?.ShouldStopPayments); } }
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); }
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); } }