From 4db0e4199f6b00d5f76633d03136dc3326c15ea2 Mon Sep 17 00:00:00 2001 From: imnavajas Date: Mon, 12 Feb 2024 20:55:42 +0100 Subject: [PATCH] =?UTF-8?q?Arreglado=20bug=20que=20no=20a=C3=B1adia=20las?= =?UTF-8?q?=20dimensiones=20de=20sangre=20en=20la=20configuracion=20de=20c?= =?UTF-8?q?ubierta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/presupuestos/cosidotapablanda/previews.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/previews.js b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/previews.js index ef48b496..c5f36f06 100755 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/previews.js +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/previews.js @@ -592,12 +592,16 @@ function getObjetoLP(lpName, _isCosido, _isTapaDura) { // Custom overwrites switch (pvObj.idIndex) { case 'cubierta': - pvObj.anchoForma = ((2 * pvObj.anchoLibro) + (2 * (pvObj.anchoSolapa + offsetSolapaValor)) + pvObj.lomoLibro); if(_isTapaDura){ let anchoPliegue = parseFloat(6); // mm let altoPliegue = parseFloat(7); // mm - pvObj.anchoForma += (2 * anchoPliegue); - pvObj.altoForma += altoPliegue; + let sangre = parseFloat(20); // mm + pvObj.anchoForma = ((2 * pvObj.anchoLibro) + (2 * anchoPliegue) + (2 * sangre) + pvObj.lomoLibro); + pvObj.altoForma += altoPliegue + (2 * sangre); + }else{ + let sangre = parseFloat(5); // mm + pvObj.anchoForma = ((2 * pvObj.anchoLibro) + (2 * (pvObj.anchoSolapa + offsetSolapaValor)) + (2 * sangre) + pvObj.lomoLibro); + pvObj.altoForma += (2 * sangre); } // Update labels $(pvName + '_forma').text(pvObj.anchoForma + "x" + pvObj.altoForma);