Validar que se seleccionen los dos archivos de los certificados
This commit is contained in:
parent
80957afb84
commit
f4779dbb99
|
@ -478,6 +478,7 @@ class Configuracion(BaseModel):
|
|||
fields = (
|
||||
'chk_config_ine',
|
||||
'chk_config_edu',
|
||||
'chk_config_carta_porte',
|
||||
'chk_config_pagos',
|
||||
'chk_config_divisas',
|
||||
'chk_cfg_pays_data_bank',
|
||||
|
|
|
@ -113,6 +113,7 @@ var controllers = {
|
|||
$$('chk_config_divisas').attachEvent('onItemClick', chk_config_item_click)
|
||||
$$('chk_config_ine').attachEvent('onItemClick', chk_config_item_click)
|
||||
$$('chk_config_edu').attachEvent('onItemClick', chk_config_item_click)
|
||||
$$('chk_config_carta_porte').attachEvent('onItemClick', chk_config_item_click)
|
||||
|
||||
$$('chk_config_leyendas_fiscales').attachEvent('onItemClick', chk_config_item_click)
|
||||
$$('cmd_admin_leyendas_fiscales').attachEvent('onItemClick', cmd_admin_leyendas_fiscales_click)
|
||||
|
@ -2129,8 +2130,7 @@ function grid_usuarios_on_check(row, column, state){
|
|||
value: state,
|
||||
}
|
||||
|
||||
|
||||
if(column='in_branch'){
|
||||
if(column=='in_branch'){
|
||||
set_user_branch(row, state)
|
||||
return
|
||||
}
|
||||
|
@ -2808,6 +2808,17 @@ function cmd_subir_certificado_click(){
|
|||
|
||||
var values = form.getValues()
|
||||
|
||||
if(!file_cer){
|
||||
msg = 'Selecciona el archivo CER del certificado'
|
||||
msg_error(msg)
|
||||
return
|
||||
}
|
||||
if(!file_key){
|
||||
msg = 'Selecciona el archivo KEY del certificado'
|
||||
msg_error(msg)
|
||||
return
|
||||
}
|
||||
|
||||
if(!values.contra.trim()){
|
||||
msg = 'La contraseña no puede estar vacía'
|
||||
msg_error(msg)
|
||||
|
@ -2838,6 +2849,8 @@ function cmd_subir_certificado_click(){
|
|||
|
||||
$$('form_upload').setValues({})
|
||||
$$('up_cert').files.data.clearAll()
|
||||
file_cer = null
|
||||
file_key = null
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -867,6 +867,12 @@ var options_admin_complements = [
|
|||
type: 'form', align: 'center', autowidth: true, disabled: true},
|
||||
{}, {maxWidth: 15}
|
||||
]},
|
||||
{maxHeight: 20},
|
||||
{template: 'Complemento para Carta Porte', type: 'section'},
|
||||
{cols: [{maxWidth: 15},
|
||||
{view: 'checkbox', id: 'chk_config_carta_porte', labelWidth: 0,
|
||||
labelRight: 'Usar el complemento Carta Porte'},
|
||||
{maxWidth: 15}]},
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue