protected virtual IEnumerable aRInvoices()
        {
            PXResultset <ARInvoiceAlias, ARInvoice> ret = new PXResultset <ARInvoiceAlias, ARInvoice>();

            int startRow  = PXView.StartRow;
            int totalRows = 0;

            foreach (PXResult <ARInvoiceAlias, ARInvoice> rec in ARInvoices_Select.View.Select(PXView.Currents, null, PXView.Searches, PXView.SortColumns, PXView.Descendings, PXView.Filters, ref startRow, PXView.MaximumRows, ref totalRows))
            {
                ARInvoiceAlias alias   = rec;
                ARInvoice      invoice = rec;
                alias.CampaignID = Campaign.Current?.CampaignID;
                ret.Add(new PXResult <ARInvoiceAlias, ARInvoice>(alias, invoice));
            }
            PXView.StartRow = 0;
            PXView.SortClear();
            return(ret);
        }
        protected virtual IEnumerable salesOrders()
        {
            PXResultset <SOOrderAlias, SOOrder> ret = new PXResultset <SOOrderAlias, SOOrder>();

            int startRow  = PXView.StartRow;
            int totalRows = 0;

            foreach (PXResult <SOOrderAlias, SOOrder> rec in SalesOrders_Select.View.Select(PXView.Currents, null, PXView.Searches, PXView.SortColumns, PXView.Descendings, PXView.Filters, ref startRow, PXView.MaximumRows, ref totalRows))
            {
                SOOrderAlias alias = rec;
                SOOrder      order = rec;
                alias.CampaignID = Campaign.Current?.CampaignID;
                ret.Add(new PXResult <SOOrderAlias, SOOrder>(alias, order));
            }

            PXView.StartRow = 0;
            PXView.SortClear();
            return(ret);
        }