arreglado el calculo del coste del envio para cuando hay más tiradas

This commit is contained in:
2025-06-19 21:50:07 +02:00
parent 4da6ee19c6
commit d89d140dac
3 changed files with 9 additions and 1 deletions

View File

@ -104,6 +104,8 @@ class DatosGenerales {
this.papelDiferente.on('change', this.#handlePapelDiferente.bind(this));
$('.tirada-presupuesto').on('change', () => {
self.validate(false);
let tiradas = self.getTiradas();
if (!Array.isArray(tiradas)) {
tiradas = [tiradas];