From 911124287f84f3df5cc264d76041115de183d2c0 Mon Sep 17 00:00:00 2001 From: Jaime Jimenez Date: Tue, 1 Jul 2025 14:16:55 +0200 Subject: [PATCH 1/2] resuelto: no hay que sumar las horas para el calculo del divisor del factor --- .../js/safekat/pages/presupuestoAdmin/sections/resumen.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js index 01d47416..09919a89 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js @@ -187,9 +187,10 @@ class Resumen { totalImpresion += totalCosteClicks + totalCosteHoras + totalCosteTinta + totalCosteCorte; margenImpresion += totalMargenClicks + totalMargenHoras + totalMargenTinta + totalMargenCorte; - sumForFactor += totalImpresion; + sumForFactor += totalCosteClicks + totalCosteTinta + totalCosteCorte; // sin horas sumForFactor += totalPapel; + let porcentajeMargenPapel = isNaN(margenPapel / (totalPapel) * 100.0) ? 0 : margenPapel / (totalPapel) * 100.0 $('#porcentajeMargenPapel').html(porcentajeMargenPapel) $('#porcentajeMargenPapel').val(porcentajeMargenPapel) From b9360ef7e5645a1472a0adaa1a5795e5cab96625 Mon Sep 17 00:00:00 2001 From: Jaime Jimenez Date: Tue, 1 Jul 2025 14:19:03 +0200 Subject: [PATCH 2/2] resuelto: no hay que sumar las horas para el calculo del divisor del factor --- .../js/safekat/pages/presupuestoAdmin/sections/resumen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js index 09919a89..6a194404 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/resumen.js @@ -187,7 +187,7 @@ class Resumen { totalImpresion += totalCosteClicks + totalCosteHoras + totalCosteTinta + totalCosteCorte; margenImpresion += totalMargenClicks + totalMargenHoras + totalMargenTinta + totalMargenCorte; - sumForFactor += totalCosteClicks + totalCosteTinta + totalCosteCorte; // sin horas + sumForFactor += totalCosteClicks + totalCosteTinta; // sin horas ni corte sumForFactor += totalPapel;