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

REPORT STANDARD FIX: BIC requirement is now checked separately from IBAN #515

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

Conversation

atm-thomasb
Copy link

REPORT STANDARD

FIX|BIC requirement is now checked separately from IBAN

Currently, the same function is used top check is an IBAN is required and if a BIC is required:
image

The needIBAN() function checks if the country is among a list of countries to decide if the field IBAN can be left blank or not.

I've added a needBIC() function which works the same way but for BIC/SWIFT since the list of countries where the BIC is mandatory is different than for IBAN (ex: Belgium requires an IBAN but not a BIC)
I've based the list on these sources:
https://www.westernunion.com/fr/fr/swift-bic-codes.html
https://qonto.com/fr/swift-codes
image
image

HOWEVER: I still added France to the list so in order to change as little as possible the way it has been working in dolibarr, even if technically BIC isn't mandatory in France.
image

@atm-thomasb atm-thomasb changed the title FIX: BIC requirement is now checked separately from IBAN REPORT STANDARD FIX: BIC requirement is now checked separately from IBAN Sep 18, 2024
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.

2 participants