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 {
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user