Skip to content

Fix bug in nl-be vat generation#455

Merged
bram-pkg merged 6 commits intoFakerPHP:mainfrom
robvankeilegom:main
Feb 22, 2022
Merged

Fix bug in nl-be vat generation#455
bram-pkg merged 6 commits intoFakerPHP:mainfrom
robvankeilegom:main

Conversation

@robvankeilegom
Copy link

There is a possibility that the calculated checksum is < 10. If it's then appended to the VAT it wouldn't have the required length of 10.

This PR makes sure the checksum is always 2 characters long by prepending a 0 if needed.

@bram-pkg bram-pkg merged commit 42d0ba6 into FakerPHP:main Feb 22, 2022
@pimjansen
Copy link

@bram-pkg we should also port this to the new extension. Will raise an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants