rut is a compnay and run is a person
Este commit está contenido en:
padre
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;
|
||||
}
|
||||
|
Cargando…
Referencia en una nueva incidencia
Block a user