arreglados problemas varios

This commit is contained in:
2025-11-01 12:07:28 +01:00
parent a01d74aeb2
commit 6afa78df68
20 changed files with 146 additions and 81 deletions

View File

@ -39,3 +39,12 @@ body {
float: none; /* por si acaso */
margin: 0;
}
.form-switch-presupuesto .form-check-input:checked {
border-color: #92b2a7;
background-color: #cbcecd;
}
.form-switch-custom.form-switch-presupuesto .form-check-input:checked::before {
color: #92b2a7;
}

View File

@ -423,14 +423,6 @@
color: inherit;
}
.form-switch-presupuesto .form-check-input:checked {
border-color: #92b2a7;
background-color: #cbcecd;
}
.form-switch-custom.form-switch-presupuesto .form-check-input:checked::before {
color: #92b2a7;
}
/* ==== Paso al resumen ==== */
/* ---- Ajustes rápidos ---- */

View File

@ -30,6 +30,7 @@ $(() => {
}
}).always(() => {
hideLoader();
checkAddressesForItems();
});
checkAddressesForItems();
@ -79,7 +80,7 @@ $(() => {
if (item.find(".shipping-addresses-sample")) {
const container = item.find(".shipping-addresses-sample");
if (container.find('.direccion-card').toArray().length === 0) {
if (container && container.length && container.find('.direccion-card').toArray().length === 0) {
errorFoundItem = true;
}
}

View File

@ -218,7 +218,7 @@ $(() => {
$('#direccionFormModalBody').html(html);
const title = $('#direccionFormModalBody #direccionForm').data('add');
$('#direccionFormModal .modal-title').text(title);
modal.removeClass('d-none');
modal.show();
});
}

View File

@ -168,7 +168,7 @@
confirmButton: 'btn btn-secondary w-xs mt-2',
},
});
$('#direccion-datatable').DataTable().ajax.reload(null, false);
table.ajax.reload(null, false);
},
error: function (xhr) {
// usa el mensaje del backend; fallback genérico por si no llega JSON

View File

@ -51,8 +51,8 @@ export default class PresupuestoWizard {
gramajeGuardas: 170,
guardasImpresas: 0,
cabezada: 'WHI',
papelCubiertaId: 3,
gramajeCubierta: 170,
papelCubiertaId: 2,
gramajeCubierta: 300,
acabado: 1,
sobrecubierta: {
activo: false,