Merge branch 'develop'

Fix - Issue #209
This commit is contained in:
Mauricio Baeza 2018-03-20 22:51:47 -06:00
commit 0a48580f0c
1 changed files with 6 additions and 4 deletions

View File

@ -156,10 +156,12 @@ function cmd_save_partner_click(id, e, node){
var values = form.getValues();
if(values.codigo_postal && values.codigo_postal.length != 5){
msg = 'Longitud inválida del C.P.'
msg_error(msg)
return
if(values.tipo_persona != 4){
if(values.codigo_postal && values.codigo_postal.length != 5){
msg = 'Longitud inválida del C.P.'
msg_error(msg)
return
}
}
if (!values.es_cliente && !values.es_proveedor){