Le 26/06/2012 12:00, Cédric Krier a écrit :
On 26/06/12 11:51 +0100, Fares Hantous wrote:
Le 26/06/2012 11:32, Cédric Krier a écrit :
I mean the "Bank Account" Model must contains a list of "Account Number"
with a type and the corresponding required fields.
After reading [1] and [2], it seems that it is possible to do that:
field1 M2O : country
field2 : key
field3 : IID
field4 : account number
The IBAN is the concatenation : country.code + key + iid + account number
The RIB / BBAC is the concatenation : iid + account number
This seems to be generic for all countries.
[1] http://fr.wikipedia.org/wiki/ISO_13616
[2] http://fr.wikipedia.org/wiki/Basic_Bank_Account_Number
I really think that it will be a dead end if you try to be too smart and
too strict when storing such information.
So the account number should be stored in a simple Char field.
Why?
This way, the user doesn't need to write twice (or 3 times) the account
number.
If you need the account number or the RIB or the IBAN, you get it.
--
--
[email protected] mailing list