Ejemplo n.º 1
0
        public void cancelInvoicePaymentINTERNAL(int paymentID)
        {
            using (var ctx = new AccContexts())
                using (var ts = new TransactionScope())
                {
                    accounting.classes.internalPayment payment = new accounting.classes.internalPayment();
                    payment.loadByPaymentID(paymentID);

                    List <int> transactions = payment.cancelPayment(enums.paymentAction.Void);
                    /*Record Invoice Payment transactions*/
                    this.RecordInvoicePaymentTransactions(transactions, paymentID, enums.paymentStat.VoidApproved);

                    /*Record Invoice Transaction*/
                    this.RecordInvoiceTransaction(transactions, enums.invoiceStat.partialInternalPaymantCancelled);

                    ts.Complete();
                }
        }
Ejemplo n.º 2
0
        public void cancelInvoicePaymentINTERNAL(int paymentID)
        {
            using (var ctx = new AccContexts())
            using (var ts = new TransactionScope())
            {
                accounting.classes.internalPayment payment = new accounting.classes.internalPayment();
                payment.loadByPaymentID(paymentID);

                List<int> transactions = payment.cancelPayment(enums.paymentAction.Void);
                /*Record Invoice Payment transactions*/
                this.RecordInvoicePaymentTransactions(transactions, paymentID, enums.paymentStat.VoidApproved);

                /*Record Invoice Transaction*/
                this.RecordInvoiceTransaction(transactions, enums.invoiceStat.partialInternalPaymantCancelled);

                ts.Complete();
            }
        }