Tryton - Issues

 

Issue8427

Title Add consistency check between IBAN and BIC
Priority feature Status chatting
Superseder Nosy List ced, pokoli, risto3
Type feature request Components bank
Assigned To Keywords
Reviews

Created on 2019-06-13.12:25:45 by ced, last changed by risto3.

Messages
msg51505 (view) Author: [hidden] (risto3) Date: 2019-08-26.14:58:36
I understand that it is verifying the BIC against the IBAN.

This I found in the net...
https://www.iban.com/iban-checker

(notice there is a developer section to use the API
but I don't believe it is without cost)
msg51504 (view) Author: [hidden] (pokoli) (Tryton committer) (Tryton translator) Date: 2019-08-26.13:56:29
> stdnum.be.iban.to_bic() ?
>
> Help on function to_bic in stdnum.be.iban:
>
> stdnum.be.iban.to_bic = to_bic(number)
>     Return the BIC for the bank that this number refers to.

This is what we use to convert spanish number formats to iban on account_statement_aeb43:

http://hg.tryton.org/modules/account_statement_aeb43/file/ead2bc9e3ba1/statement.py#l5
msg51501 (view) Author: [hidden] (risto3) Date: 2019-08-26.13:14:38
stdnum.be.iban.to_bic() ?

Help on function to_bic in stdnum.be.iban:

stdnum.be.iban.to_bic = to_bic(number)
    Return the BIC for the bank that this number refers to.
msg51499 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-08-26.12:22:23
We should also consider having a consistency check between different number type for the same account. As issue8611 showed national format may be used and should be coherent with IBAN.
msg50825 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-07-23.22:03:50
Here is the structure: https://bank.codes/iban/structure/belgium/
Indeed it is not the BIC but the bank code.
So probably the check should require to define the bank code on the bank in addition to the BIC: https://en.wikipedia.org/wiki/Bank_code
msg50806 (view) Author: [hidden] (pokoli) (Tryton committer) (Tryton translator) Date: 2019-07-23.10:21:23
Could you post an example on how to extract the BIC from the IBAN number in belgium? Is thi BIC part of the IBAN? 

In spain the BIC is not part of the IBAN but there is a national bank code which is part of the IBAN. The BIC can be deducted from the Bank code.
msg50225 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-06-13.12:25:44
In some countries (at least in Belgium), it is possible to extract the BIC from the IBAN number. So we could have a check that ensure such number is linked to the bank.

Normally, the same could be done for French bank but python-stdnum does not have yet the methods.
History
Date User Action Args
2019-08-26 14:58:37risto3setmessages: + msg51505
2019-08-26 13:56:29pokolisetmessages: + msg51504
2019-08-26 13:14:38risto3setnosy: + risto3
messages: + msg51501
2019-08-26 12:22:24cedsetmessages: + msg51499
2019-07-23 22:03:51cedsetmessages: + msg50825
2019-07-23 10:21:23pokolisetstatus: unread -> chatting
messages: + msg50806
2019-06-14 13:02:06pokolisetnosy: + pokoli
2019-06-13 12:25:45cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)