Example #1
0
        public void payInvoiceByCC(A_payInvoiceCredit I)
        {
            accounting.classes.enums.ccCardType cccardType = accounting.classes.enums.ccCardType.MASTERCARD;

            switch (I.ccCardTypeId)
            {
            case 1:
                cccardType = accounting.classes.enums.ccCardType.MASTERCARD;
                break;

            case 2:
                cccardType = accounting.classes.enums.ccCardType.VISACARD;
                break;
            }

            Invoice inv = new Invoice(I.invoiceId);

            inv.doCCExtPayment(I.amount, I.cardId, cccardType);
        }
Example #2
0
        public void payInvoiceByCC(A_payInvoiceCredit I)
        {
            accounting.classes.enums.ccCardType cccardType = accounting.classes.enums.ccCardType.MASTERCARD;

            switch (I.ccCardTypeId)
            {
                case 1:
                    cccardType = accounting.classes.enums.ccCardType.MASTERCARD;
                    break;
                case 2:
                    cccardType = accounting.classes.enums.ccCardType.VISACARD;
                    break;
            }

            Invoice inv = new Invoice(I.invoiceId);

            inv.doCCExtPayment(I.amount, I.cardId, cccardType);
        }