mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'main' into 'add/calculo_credito_cliente'
Main See merge request jjimenez/safekat!614
This commit is contained in:
@ -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');
|
||||
|
||||
@ -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){
|
||||
|
||||
Reference in New Issue
Block a user