File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,11 @@ def validate(number):
99
99
except ValidationError :
100
100
_validate_natural (number )
101
101
elif number [2 ] == '9' :
102
- # 9 = juridical RUC
103
- _validate_juridical (number )
102
+ # 9 = juridical RUC (or public RUC)
103
+ try :
104
+ _validate_public (number )
105
+ except ValidationError :
106
+ _validate_juridical (number )
104
107
else :
105
108
raise InvalidComponent () # third digit wrong
106
109
return number
Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ Normal juridical RUC values (third digit is 9) that should just work.
288
288
... 1792141869001
289
289
... 1792147638001
290
290
... 1792373255001
291
+ ... 1793221293001
291
292
... 1890001323001
292
293
... 1890003628001
293
294
... 1890037646001
You can’t perform that action at this time.
0 commit comments