mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
arreglado
This commit is contained in:
@ -20,7 +20,12 @@ class Resumen {
|
||||
});
|
||||
|
||||
$('#total_descuentoPercent').on('change', function () {
|
||||
this.updateTotales({ updateLP: false, updateServicios: false, updateEnvio: false }, false);
|
||||
let autoTotalAceptado = AutoNumeric.getAutoNumericElement($('#total_aceptado_revisado')[0]);
|
||||
let total_aceptado_revisado = autoTotalAceptado.getNumber();
|
||||
if(total_aceptado_revisado && total_aceptado_revisado != 0)
|
||||
this.updateTotales({ updateLP: false, updateServicios: false, updateEnvio: false }, true);
|
||||
else
|
||||
this.updateTotales({ updateLP: false, updateServicios: false, updateEnvio: false }, false);
|
||||
}.bind(this));
|
||||
|
||||
$("#totalDespuesDecuento").on('change', this.updateToastSummary.bind(this))
|
||||
@ -354,7 +359,7 @@ class Resumen {
|
||||
$('#total_descuentoPercent').val(0)
|
||||
}
|
||||
let totalAntesDescuento = totalCostes + totalMargenes + totalEnvios_base;
|
||||
let totalDescuento = totalAntesDescuento * parseInt($('#total_descuentoPercent').val() || 0) / 100
|
||||
let totalDescuento = totalAntesDescuento * parseFloat($('#total_descuentoPercent').val() || 0) / 100
|
||||
let totalPresupuesto = totalAntesDescuento - totalDescuento; // para el calculo del precio_u solo se tiene en cuenta el base
|
||||
let precioUnidad = totalPresupuesto / parseInt($('#tirada').val())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user