public ARChargeInvoices()
        {
            ARSetup setup = ARSetup.Current;

            ARDocumentList.SetSelected <ARInvoice.selected>();
            ARDocumentList.SetProcessCaption(Messages.Process);
            ARDocumentList.SetProcessAllCaption(Messages.ProcessAll);
            ARDocumentList.Cache.AllowInsert = false;
            PXUIFieldAttribute.SetEnabled <ARInvoice.docType>(ARDocumentList.Cache, null, true);
            PXUIFieldAttribute.SetEnabled <ARInvoice.refNbr>(ARDocumentList.Cache, null, true);
        }
        public ARPaymentsAutoProcessing()
        {
            ARSetup setup = ARSetup.Current;

            PXCurrencyAttribute.SetBaseCalc <PaymentFilter.curySelTotal>(Filter.Cache, null, false);
            ARDocumentList.SetSelected <ARPaymentInfo.selected>();
            ARDocumentList.SetProcessDelegate <ARPaymentCCProcessing>(delegate(ARPaymentCCProcessing aGraph, ARPaymentInfo doc)
            {
                ProcessPayment(aGraph, doc);
            }
                                                                      );
            ARDocumentList.Cache.AllowInsert = false;
        }