Пример #1
0
        private void AgregarFactura(Comprobante_Factura factura)
        {
            var rowIndex = dgvFacturas.Rows.Add();

            dgvFacturas.Rows[rowIndex].Tag = factura;
            CargarFilaEnGrilla(dgvFacturas, rowIndex);

            ActualizarTotalFactura(factura, true);
        }
Пример #2
0
        private void ActualizarTotalFactura(Comprobante_Factura factura, bool positivo)
        {
            var tipoCambio = factura.idMoneda == 0 ? 1 : TipoCambio;
            var importe    = decimal.Parse(txtTotalFact.Text);

            importe          += factura.importe * tipoCambio * (positivo ? 1 : -1);
            txtTotalFact.Text = importe.ToString("0.00");

            CalcularTotales();
        }
Пример #3
0
 public frmMails(Comprobante_Factura factura)
 {
     _factura = factura;
     InitializeComponent();
 }