Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support shortest possible finnish reference number in international format. #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xkr47
Copy link
Contributor

@xkr47 xkr47 commented Jul 6, 2017

A finnish reference number is at least 4 digits, but as I see it the spec doesn't prohibit the first numbers being zero. The smallest non-zero finnish reference would thus be 0013. The rules for converting finnish reference number to international "Creditor Reference" RF format also state that initial zeroes should be removed before embedding, thus yielding RF41 13 as the shortest finnish refernce in RF format (rather than RF41 0013). Thus this PR updates the regex to allow for a minimum of RF + 4 digits instead of RF + 6 digits.

See http://www.finanssiala.fi/maksujenvalitys/dokumentit/kansainvalisen_viitteen_rakenneohje.pdf

…ormat.

A finnish reference number is at least 4 digits, but as I see it the spec doesn't prohibit the first numbers being zero. The smallest non-zero finnish reference would thus be 0013. The rules for converting finnish reference number to international "Creditor Reference" RF format also state that initial zeroes should be removed before embedding, thus yielding RF41 13 as the shortest finnish refernce in RF format (rather than RF41 0013). Thus this commit updates the regex to allow for a minimum of RF + 4 digits instead of RF + 6 digits.

See http://www.finanssiala.fi/maksujenvalitys/dokumentit/kansainvalisen_viitteen_rakenneohje.pdf
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.

1 participant