Exemplo n.º 1
0
        protected virtual void ARInvoice_RowSelected(PXCache sender, PXRowSelectedEventArgs e)
        {
            ARInvoice row = (ARInvoice)e.Row;

            if (row != null && !String.IsNullOrEmpty(row.DocType) &&
                !String.IsNullOrEmpty(row.RefNbr))
            {
                row.IsCCPayment = PaymentMethodHelper.IsCCPayment(row);
            }
        }
Exemplo n.º 2
0
        protected virtual void ARInvoice_RowSelected(PXCache sender, PXRowSelectedEventArgs e)
        {
            ARInvoice row = (ARInvoice)e.Row;

            if (row != null && !String.IsNullOrEmpty(row.DocType) &&
                !String.IsNullOrEmpty(row.RefNbr))
            {
                row.IsCCPayment = false;
                if (PaymentMethodHelper.IsCCPayment(
                        PXSelectorAttribute.Select <ARInvoice.paymentMethodID>(sender, row)))
                {
                    row.IsCCPayment = true;
                }
            }
        }