corregido

This commit is contained in:
2025-04-04 18:14:31 +02:00
parent 077cfd7d82
commit 6b1dc57821
2 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@
class="btn btn-primary w-100">Ajustar</button>
</div>
</div>
<?php /*if ($presupuestoEntity->estado_id == 2): ?>
<?php if ($presupuestoEntity->estado_id == 2): ?>
<div class="row">
<div class="col-sm-6 mb-1">
<label for="totalAceptado"
@ -152,7 +152,7 @@
class="form-control text-center fs-5 autonumeric-resumen-currency" value="" <?php echo ($tipo_impresion_id == 21) ? ' max=80' : '' ?>>
</div>
</div>
<?php endif; */?>
<?php endif; ?>
<div class="row">
<p>
<span id="aprobado_by_at"></span>

View File

@ -338,7 +338,7 @@ class Resumen {
}
}
let porcentajeMargen = totalCostes + totalMargenes > 0 ? (100 * totalMargenes / (totalCostes + totalMargenes)).toFixed(0) : 0
let porcentajeMargen = totalCostes + totalMargenes > 0 ? (100 * totalMargenes / (totalCostes)).toFixed(0) : 0
$('#totalCostes').html(totalCostes).val(totalCostes.toFixed(2))
$('#totalMargenes').html(totalMargenes).val(totalMargenes.toFixed(2))
$('#porcentajeMargen').html(porcentajeMargen).val(porcentajeMargen)