mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'fix/factor' into 'main'
resuelto: no hay que sumar las horas para el calculo del divisor del factor See merge request jjimenez/safekat!875
This commit is contained in:
@ -187,9 +187,10 @@ class Resumen {
|
|||||||
totalImpresion += totalCosteClicks + totalCosteHoras + totalCosteTinta + totalCosteCorte;
|
totalImpresion += totalCosteClicks + totalCosteHoras + totalCosteTinta + totalCosteCorte;
|
||||||
margenImpresion += totalMargenClicks + totalMargenHoras + totalMargenTinta + totalMargenCorte;
|
margenImpresion += totalMargenClicks + totalMargenHoras + totalMargenTinta + totalMargenCorte;
|
||||||
|
|
||||||
sumForFactor += totalImpresion;
|
sumForFactor += totalCosteClicks + totalCosteTinta; // sin horas ni corte
|
||||||
sumForFactor += totalPapel;
|
sumForFactor += totalPapel;
|
||||||
|
|
||||||
|
|
||||||
let porcentajeMargenPapel = isNaN(margenPapel / (totalPapel) * 100.0) ? 0 : margenPapel / (totalPapel) * 100.0
|
let porcentajeMargenPapel = isNaN(margenPapel / (totalPapel) * 100.0) ? 0 : margenPapel / (totalPapel) * 100.0
|
||||||
$('#porcentajeMargenPapel').html(porcentajeMargenPapel)
|
$('#porcentajeMargenPapel').html(porcentajeMargenPapel)
|
||||||
$('#porcentajeMargenPapel').val(porcentajeMargenPapel)
|
$('#porcentajeMargenPapel').val(porcentajeMargenPapel)
|
||||||
|
|||||||
Reference in New Issue
Block a user