mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-10 21:09:12 +00:00
el precio de los marcapáginas no se añadia al total del presupuesto
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user