decimal getUtilidad(factura_Detalle det, int precioId) { switch (precioId) { case 1: { return(det.producto[0].utilidad_1); } case 2: { return(det.producto[0].utilidad_2); } case 3: { return(det.producto[0].utilidad_3); } case 4: { return(det.producto[0].utilidad_4); } } return(new decimal(0)); }
private decimal getMontoImpuesto(factura_Detalle detalle) { return(decimal.Round((detalle.montoTotal - detalle.montoDescuento) * decimal.Parse("0.13"), 2, System.MidpointRounding.AwayFromZero)); }
private decimal getDescuento(factura_Detalle detalle) { return(decimal.Round(detalle.montoTotal * detalle.descuento, 2, System.MidpointRounding.AwayFromZero)); }