el precio de los marcapáginas no se añadia al total del presupuesto

This commit is contained in:
2026-02-10 14:48:15 +01:00
parent cef0af1bd2
commit 35967b93a0
2 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,7 @@
spring.application.name=erp spring.application.name=erp
# Active profile # Active profile
#spring.profiles.active=local spring.profiles.active=local
spring.profiles.active=dev #spring.profiles.active=dev
#spring.profiles.active=test #spring.profiles.active=test
#spring.profiles.active=prod #spring.profiles.active=prod

View File

@ -1897,6 +1897,15 @@ export default class PresupuestoWizard {
...result, ...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(); this.#cacheFormData();
}); });