[FIX] IBAN validation for Italian bank accounts is wrong and is preventing valid accounts from being added. Validation removed for Italian accounts. Need to find a long-term solution to IBAN validation as the current code is rejecting valid numbers for a number of countries.

This commit is contained in:
James Jesudason
2012-04-17 12:11:43 +01:00
parent 99a1cb2e57
commit 939c82b1d5

View File

@@ -219,7 +219,7 @@ class IBAN(str):
# Iceland uses an extra identification number, split in two on
# display. Coded here as %P%V.
'IS': BBANFormat('CCCCTTAAAAAAPPPPPPVVVV', '%C-%T-%A-%P-%V'),
'IT': BBANFormat('WBBBBBCCCCCCAAAAAAAAAAAAV', '%W/%B/%C/%A%V'),
#'IT': BBANFormat('WBBBBBCCCCCCAAAAAAAAAAAAV', '%W/%B/%C/%A%V'),
'LV': BBANFormat('BBBBAAAAAAAAAAAAA', '%I'),
'LI': BBANFormat('CCCCCAAAAAAAAAAAA', '%C %A', nolz=True),
'LT': BBANFormat('BBBBBAAAAAAAAAAA', '%I'),