From 35967b93a05c59731215d170c3dcaaf7ee68a786 Mon Sep 17 00:00:00 2001 From: jjimenez Date: Tue, 10 Feb 2026 14:48:15 +0100 Subject: [PATCH] =?UTF-8?q?el=20precio=20de=20los=20marcap=C3=A1ginas=20no?= =?UTF-8?q?=20se=20a=C3=B1adia=20al=20total=20del=20presupuesto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.properties | 4 ++-- .../js/pages/imprimelibros/presupuestador/wizard.js | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f6c8336..3562c23 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,7 +1,7 @@ spring.application.name=erp # Active profile -#spring.profiles.active=local -spring.profiles.active=dev +spring.profiles.active=local +#spring.profiles.active=dev #spring.profiles.active=test #spring.profiles.active=prod diff --git a/src/main/resources/static/assets/js/pages/imprimelibros/presupuestador/wizard.js b/src/main/resources/static/assets/js/pages/imprimelibros/presupuestador/wizard.js index 026f2eb..21707c2 100644 --- a/src/main/resources/static/assets/js/pages/imprimelibros/presupuestador/wizard.js +++ b/src/main/resources/static/assets/js/pages/imprimelibros/presupuestador/wizard.js @@ -1897,6 +1897,15 @@ export default class PresupuestoWizard { ...result, }; + if (!this.formData.servicios.servicios.some(s => s.id === "marcapaginas") && result.precio > 0) { + this.formData.servicios.servicios.push({ + id: "marcapaginas", + label: $(`label[for="marcapaginas"] .service-title`).text().trim(), + units: 1, + price: result.precio, + }); + } + this.#cacheFormData(); });