Currently, In a repo have a function regon, but this function only checks numbers that consist of 9 digits. In special cases, a government agency may assign 14 digit number.
Example: 96998880588057
I think that should be a function that checks the second case.
Ponieważ jeden ze współczynników wagowych wynosi zero to weryfikacja „długiego” REGON-u wymaga weryfikacji 9 cyfr z wagami jak dla 9-cyfrowego numeru, a następnie weryfikacji długiego REGON-u z innymi wagami.
Hello,
Currently, In a repo have a function
regon
, but this function only checks numbers that consist of 9 digits. In special cases, a government agency may assign 14 digit number. Example: 96998880588057I think that should be a function that checks the second case.
More: http://www.krs-online.com.pl/sprawdzanie_regon.html https://pl.wikipedia.org/wiki/REGON I would like to emphatize sentence:
because not every project checks this condition (ex. https://github.com/marioosh/common_numbers )
Thanks in advance.