rut is a compnay and run is a person

This commit is contained in:
2019-01-15 16:41:13 -03:00
parent 8d1e27bd96
commit 61821ed05d

View File

@@ -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;
}