rut is a compnay and run is a person
This commit is contained in:
parent
8d1e27bd96
commit
61821ed05d
@ -149,11 +149,11 @@ namespace LibSernatur {
|
||||
*/
|
||||
public enum Type {
|
||||
/**
|
||||
* Company
|
||||
* Person
|
||||
*/
|
||||
RUN,
|
||||
/**
|
||||
* Person
|
||||
* Company
|
||||
*/
|
||||
RUT
|
||||
}
|
||||
@ -299,7 +299,7 @@ namespace LibSernatur {
|
||||
*/
|
||||
public Type type () {
|
||||
uint rut = int.parse (this.clean_rut);
|
||||
if (rut < 100000000 && rut > 50000000) {
|
||||
if (rut > 50000000 && rut < 100000000) {
|
||||
// Company
|
||||
return Type.RUT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user