Closed RamonBalthazar closed 2 months ago
This is a valid French VAT number: 04813837531. The checksum bit is: 04. The sum is correctly being calculated as 4, but validation fails when comparing "4" with "04".
04813837531
04
4
"4"
"04"
As a solution we compare numbers instead of strings.
@koblas Added test cases :)
This is a valid French VAT number:
04813837531
. The checksum bit is:04
. The sum is correctly being calculated as4
, but validation fails when comparing"4"
with"04"
.As a solution we compare numbers instead of strings.