Merge branch 'main' into 'add/calculo_credito_cliente'

Main

See merge request jjimenez/safekat!614
This commit is contained in:
2025-03-27 11:24:03 +00:00
7 changed files with 34 additions and 52 deletions

View File

@ -507,11 +507,12 @@ class PresupuestoAdminEdit {
if (mano > 0) {
anchoTotal += 6 + 5; // dobleces + sangre
maxSolapas = Math.min(Math.floor((865 - anchoTotal) / 2), 0.75 * this.getDimensionLibro().ancho);
maxSolapas = Math.min(Math.floor((865 - anchoTotal) / 2), 0.95 * this.getDimensionLibro().ancho);
}
else {
maxSolapas = 0.75 * this.getDimensionLibro().ancho;
maxSolapas = 0.95 * this.getDimensionLibro().ancho;
}
maxSolapas = Math.floor(maxSolapas, 0);
if ($('#solapas_ancho').length > 0 && $('#solapas_ancho').attr('max') != maxSolapas) {
$('#solapas_ancho').attr('max', maxSolapas);
$('#solapas_ancho').trigger('change');

View File

@ -16,9 +16,7 @@ class DatosGenerales{
this.numeroEdicion = this.domItem.find('#numeroEdicion');
this.isbn = this.domItem.find('#isbn');
this.openCliente = this.domItem.find('#openCliente');
this.cliente = new ClassSelect($('#clienteId'), '/clientes/cliente/getSelect2', 'Seleccione cliente');
this.pais = new ClassSelect($('#paisId'), '/paises/menuitems2', 'Seleccione País');
this.referenciaCliente = this.domItem.find('#referenciaCliente');
@ -34,10 +32,7 @@ class DatosGenerales{
allowClear: false,
});
this.openCliente.click(()=>{
const urlObj = new URL(window.location.href);
window.open(`${urlObj.origin}` + '/clientes/cliente/edit/' + this.cliente.getVal());
});
}
cargarDatos(datos){