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

Wrong BBAN Branch ID start offset for IT and SM #52

Closed
simeucci opened this issue Jul 18, 2016 · 5 comments
Closed

Wrong BBAN Branch ID start offset for IT and SM #52

simeucci opened this issue Jul 18, 2016 · 5 comments

Comments

@simeucci
Copy link

Hello,
first I just want to thank you very much for the great job!
Testing your class to verify / extract data from IBAN codes, I realized that to get the right Branch ID from a correct italian iban, in registry.txt, I had to change the 12th piece of the line (explode by '|' ) from 0 to 1 not to include the National Checksum single char at the beginning of the Branch ID.
This actually works and does not seem to break any other functionality, but I would appreciate you to confirm this is the right way to proceed.

@globalcitizen
Copy link
Owner

Thanks, it's nice to hear some positive feedback.

You are probably right, in which case this is a great bug report. Thanks a lot!

I am traveling internationally right now with my family but I will take a look over the next few days and release an update if it proves correct (which I believe it probably is).

If you could give me some examples (input IBAN, output received, expected output) this would help things along the way.

Thanks for a great bug report and for being friendly 👍

@simeucci
Copy link
Author

Hello, glad to read from you!

IBAN: IT18T0538703601000000198036
Br.ID Received: T05387
Correct Br.ID: 05387

IBAN: IT57V0538703601000000198060
Br.ID Received: V05387
Correct Br.ID: 05387

IBAN: IT40Z0538703601000000198072
Br.ID Received: Z05387
Correct Br.ID: 05387

IBAN: IT29P0538742530000000802006
Br.ID Received: P05387
Correct Br.ID: 05387

IBAN: IT94I0306940101100100003599
Br.ID Received: I03069
Correct Br.ID: 03069

IBAN: IT63 M033 5901 6001 0000 0131 525
Br.ID Received: M03359
Correct Br.ID: 03359

IBAN: IT76M0103013900000004690993
Br.ID Received: M01030
Correct Br.ID: 01030

IBAN: SM 36 H 06067 09801 000000796301
Br.ID Received: H06067
Correct Br.ID: 06067

...

Bast regards

@globalcitizen
Copy link
Owner

Just a quick note to say I still have this staring at me but have been super busy as on the road. Should have time for it circa Friday/Saturday.

@globalcitizen
Copy link
Owner

globalcitizen commented Aug 17, 2016

Apologies for the delay ... I badly damaged my ankle and wound up in a Vietnamese hospital.

Now safely home and looking to get this one resolved today 👍

PS. San Marino (SM) has an alphabetic checksum with an unknown algorithm. Could you try to dig it up?

globalcitizen pushed a commit that referenced this issue Aug 17, 2016
@globalcitizen
Copy link
Owner

Resolved in Version 2.5.8.

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

No branches or pull requests

2 participants