rut is a compnay and run is a person

This commit is contained in:
Chris Cromer 2019-01-15 16:41:13 -03:00
parent 8d1e27bd96
commit 61821ed05d
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
1 changed files with 3 additions and 3 deletions

View File

@ -149,11 +149,11 @@ namespace LibSernatur {
*/ */
public enum Type { public enum Type {
/** /**
* Company * Person
*/ */
RUN, RUN,
/** /**
* Person * Company
*/ */
RUT RUT
} }
@ -299,7 +299,7 @@ namespace LibSernatur {
*/ */
public Type type () { public Type type () {
uint rut = int.parse (this.clean_rut); uint rut = int.parse (this.clean_rut);
if (rut < 100000000 && rut > 50000000) { if (rut > 50000000 && rut < 100000000) {
// Company // Company
return Type.RUT; return Type.RUT;
} }