Skip to content

Commit

Permalink
Quita validacion inconsistente y actualiza a msip que genera mejor nu…
Browse files Browse the repository at this point in the history
…mero para persona SIN DOCUMENTO. Closes #286
  • Loading branch information
vtamara committed May 3, 2024
1 parent 0421bb1 commit 107985f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/cor1440_gen.git
revision: 545e18f528856bda7548449efd1832c961be80d9
revision: 3130a63dcc1dc85dcc7627d2f919d7ad81a51f66
branch: v2.2
specs:
cor1440_gen (2.2.0.beta6)
Expand All @@ -46,7 +46,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/heb412_gen.git
revision: 3b40ccd9efd5d844e58a26c640bd2b6e17cf03e3
revision: 67fb7ff49b2173a69474c7202dabb00692c0f44a
branch: v2.2
specs:
heb412_gen (2.2.0.beta6)
Expand All @@ -65,7 +65,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/mr519_gen.git
revision: bde099fc81e5329da703e6d1382e567159ebaa15
revision: d6910c4e69fd0d6cc310352b7008c3224a3d8df2
branch: v2.2
specs:
mr519_gen (2.2.0.beta6)
Expand All @@ -74,7 +74,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/msip.git
revision: 36cf49d8dfee4295d7b6300d469d1cf378c6bfdc
revision: c26268bf266ef561dce07aa68e586755c5ace7aa
branch: v2.2
specs:
msip (2.2.0.beta6)
Expand All @@ -94,7 +94,7 @@ GIT

GIT
remote: https://gitlab.com/pasosdeJesus/sivel2_gen.git
revision: b1ee39da8a2337dfcba69a249ea8b5d309b5d800
revision: 8ccbffbc03a5f1107cfde4b06b8cc3944bffb002
branch: v2.2
specs:
sivel2_gen (2.2.0.beta6)
Expand Down Expand Up @@ -590,4 +590,4 @@ DEPENDENCIES
will_paginate

BUNDLED WITH
2.5.9
2.5.10
15 changes: 0 additions & 15 deletions app/models/msip/persona.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,6 @@ class Persona < ActiveRecord::Base
message: "Tipo y número de documento repetido"
}

validate :sindoc_estandar
def sindoc_estandar
if tdocumento_id == 11
if tdocumento_id == 11 && id && numerodocumento &&
numerodocumento.to_s != '' &&
numerodocumento.to_i != self.id &&
(numerodocumento[-1] < 'A' || numerodocumento[-1] > 'Z')
errors.add(:numerodocumento, "Número de documento #{numerodocumento} "\
"con tipo SIN DOCUMENTO debe ser el "\
"número de la persona (i.e #{self.id}) o "\
"un número seguido de letras (e.g 2190C)")
end
end
end

validate :sin_aportes_tras_desafiliacion
def sin_aportes_tras_desafiliacion
if !self.fecha_desafiliacion_aportante
Expand Down

0 comments on commit 107985f

Please sign in to comment.