resuelto: no hay que sumar las horas para el calculo del divisor del factor

This commit is contained in:
2025-07-01 14:16:55 +02:00
parent 055274d6df
commit 911124287f

View File

@ -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)