Añadida a vista de presupuesto admin iskn. Asignacion automatica al confirmar presupuesto

This commit is contained in:
imnavajas
2025-07-25 12:33:30 +02:00
parent 94222790df
commit 266241b260
7 changed files with 85 additions and 41 deletions

View File

@ -234,6 +234,7 @@ class PresupuestoAdminEdit {
titulo: this.datosGenerales.titulo.val(),
autor: this.datosGenerales.autor.val(),
isbn: this.datosGenerales.isbn.val(),
iskn: this.datosGenerales.iskn.val(),
pais_id: this.datosGenerales.pais.getVal(),
coleccion: this.datosGenerales.coleccion.val(),
numero_edicion: this.datosGenerales.numeroEdicion.val(),

View File

@ -15,6 +15,7 @@ class DatosGenerales{
this.coleccion = this.domItem.find('#coleccion');
this.numeroEdicion = this.domItem.find('#numeroEdicion');
this.isbn = this.domItem.find('#isbn');
this.iskn = this.domItem.find('#iskn');
this.cliente = new ClassSelect($('#clienteId'), '/clientes/cliente/getSelect2', 'Seleccione cliente');
@ -46,6 +47,7 @@ class DatosGenerales{
this.coleccion.val(datos.coleccion);
this.numeroEdicion.val(datos.numero_edicion);
this.isbn.val(datos.isbn);
this.iskn.val(datos.iskn);
this.cliente.setOption(datos.cliente.id, datos.cliente.nombre);