private void AgregarFactura(Comprobante_Factura factura) { var rowIndex = dgvFacturas.Rows.Add(); dgvFacturas.Rows[rowIndex].Tag = factura; CargarFilaEnGrilla(dgvFacturas, rowIndex); ActualizarTotalFactura(factura, true); }
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(); }
public frmMails(Comprobante_Factura factura) { _factura = factura; InitializeComponent(); }