Subject: | Bug: prefixed 0 for ustid_be are ignored |
Date: | Tue, 7 Jul 2020 12:16:36 +0200 |
To: | bug-Algorithm-CheckDigits [...] rt.cpan.org |
From: | Jan Büren <jan [...] kivitendo.de> |
Hi,
take a look at the vat number for S.Oliver Belgium: BE0473700488
The CheckDigits call for is_valid says it is not a valid number:
use Algorithm::CheckDigits;
$ustid = CheckDigits('ustid_be');
print $ustid->is_valid('0473700488');
By Taking a look at the wiki page for the Belgian vat no convention they
are allowing prefixed 0.
Thanks
Jan
--
Blog http://blog.kivitendo.de/
kivitendo GmbH
Jan Büren
Kölnstr. 311
53117 Bonn
USt-IdNr. DE292363254
Telefon: 0228 92 98 2012
persönliche Durchwahl: 0228 92 97 8965