From d2050ca44d2ef8de7b78587f05467d9b89515fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Wed, 13 Nov 2024 09:17:44 +0100 Subject: [PATCH] arreglado seleccion iva reducido para resumen --- httpdocs/assets/js/safekat/pages/presupuestoCliente/resumen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpdocs/assets/js/safekat/pages/presupuestoCliente/resumen.js b/httpdocs/assets/js/safekat/pages/presupuestoCliente/resumen.js index 27686dd5..060b19c8 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoCliente/resumen.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoCliente/resumen.js @@ -308,7 +308,7 @@ class Resumen { const base = tarjetaPrecio.find('.tarjeta-tiradas-precios-precio').attr('data'); let base_text = this.#changeDecimalFormat(base); - const iva_porcentaje = this.datosGenerales.ivaReducido.find('option:selected').val() == 1 ? 0.21 : 0.04; + const iva_porcentaje = parseInt(this.datosGenerales.ivaReducido.find('option:selected').val()) == 1 ? 0.04 : 0.21; const iva = (parseFloat(base) * iva_porcentaje).toFixed(2); let iva_text = this.#changeDecimalFormat(iva);