Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/03/2015, 14:35
KenMasters
 
Fecha de Ingreso: abril-2005
Ubicación: Piura - Perú
Mensajes: 189
Antigüedad: 19 años
Puntos: 0
calcular impuestos C#

como puedo calcular el subtotal, igv (18%), y total de una operacion en c# ?

txtVtotal.Text = dr.GetSqlDecimal(0).ToString();
double subtotal = ((double.Parse(txtVtotal.Text)) / 1.18).ToString();
double igv = double.Parse(txtVtotal.Text) + double.Parse(txtVSubtotal.Text);
txtVigv.Text = igv.ToString();


Considerando que el valor total lo saco de una data en SQL