public virtual IEnumerable ProcessPayment(PXAdapter adapter) { if (this.Documents.Current != null && this.Filter.Current != null) { PendingPaymentSummary res = this.Documents.Current; PendingInvoiceFilter currentFilter = this.Filter.Current; APPayBills graph = PXGraph.CreateInstance <APPayBills>(); PayBillsFilter paymentFilter = graph.Filter.Current; paymentFilter.PayAccountID = res.PayAccountID; paymentFilter.PayTypeID = res.PayTypeID; paymentFilter.PayDate = currentFilter.PayDate; graph.Filter.Update(paymentFilter); throw new PXRedirectRequiredException(graph, "ProcessPayment"); } return(Filter.Select()); }
public AmountToPayValidationService(APPayBills apPayBills) { ApPayBills = apPayBills; ApPayBillsExt = apPayBills.GetExtension <ApPayBillsExt>(); InitializeCalculationServices(); }