modificado el precio unidad del presupuesto

This commit is contained in:
jaimejimenezortega
2024-03-23 11:59:45 +01:00
parent 6460b0e502
commit 799a9a10df
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ function updateTotales(updateLP=true, updateServicios=true, updateEnvio=true){
$('#totalAntesDescuento').text((totalAntesDescuento).toFixed(2) + '€')
$('#descuentoTotal').text((totalDescuento).toFixed(2) + '€')
$('#totalDespuesDecuento').text((totalPresupuesto).toFixed(2) + '€')
$('#precioUnidadPresupuesto').text((precioUnidad).toFixed(2) + '€')
$('#precioUnidadPresupuesto').text((precioUnidad).toFixed(4) + '€')
$('#factor').text(((totalPresupuesto-totalEnvios-margenEnvios)/sumForFactor).toFixed(2))
$('#factor_ponderado').text(((totalPresupuesto-totalEnvios-margenEnvios)/sumForFactorPonderado).toFixed(2))

View File

@ -157,7 +157,7 @@ async function add_tirada_alternativa(tirada_alt) {
coste_envio: coste_envio.toFixed(2),
margen: ((margen_total + margen_servicios + margen_envio)/(coste_total+coste_envio)*100.0).toFixed(2),
total_pedido: (coste_total + costes_servicios + coste_envio).toFixed(2),
precio_unidad: ((coste_total + costes_servicios + coste_envio) / datos.tirada).toFixed(2),
precio_unidad: ((coste_total + costes_servicios + coste_envio) / datos.tirada).toFixed(4),
}).draw(false);
}