Example #1
0
        protected void NewApunteBancario(NotifyEntity item)
        {
            if (item.ETipoNotificacion != ETipoNotificacion.PagoTarjetaVencido)
            {
                if (((PaymentList)item.List).Count > 0)
                {
                    //PgMng.ShowInfoException("Seleccione un extracto pendiente de la tarjeta");

                    PaymentInfo    pg      = ((PaymentList)item.List)[0];
                    CreditCardInfo tarjeta = CreditCardInfo.Get(pg.OidTarjetaCredito, false);
                    PaymentInfo    pago    = PaymentInfo.GetByVencimientoTarjeta(tarjeta, pg.Vencimiento, false);

                    PagoFraccionadoTarjetaEditForm form = new PagoFraccionadoTarjetaEditForm(pago.Oid, ETipoPago.FraccionadoTarjeta, this);
                    form.ShowDialog();
                }
                return;
            }

            PaymentList list = (PaymentList)item.List;

            if (list.Count == 0)
            {
                PgMng.ShowInfoException("No existen extractos pendientes para esta tarjeta");
                return;
            }

            Library.Invoice.ModuleController.CreateApuntesBancarios(list);

            RefreshAction();
        }