예제 #1
0
        private void Btn_aprobar_Click(object sender, EventArgs e)
        {
            try
            {
                logicaConsulta.validarDevolucion(Txt_solicitud.Text);
                logicaConsulta.anularFactura(correlativo, serie);

                Txt_codigo.Text    = null;
                Txt_impuesto.Text  = null;
                Txt_total.Text     = null;
                Txt_fecha.Text     = null;
                Txt_subtotal.Text  = null;
                Txt_nombres.Text   = null;
                Txt_apellidos.Text = null;
                Txt_nit.Text       = null;
                Txt_registros.Text = null;

                Txt_solicitud.Text = null;
                Txt_factura.Text   = null;
                Txt_fechaDev.Text  = null;
                Txt_desc.Text      = null;

                logicaConsulta.obtenerDevoluciones(Dgv_solicitudes, false);
                MessageBox.Show("Factura Anulada Correctamente!", "Devoluciones", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch
            {
                MessageBox.Show("Error al Validar Solicitud!", "Devoluciones", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }