On 25 juin, 18:19, Rom1 <[email protected]> wrote: > On Mon, Jun 25, 2012 at 5:46 PM, Cédric Krier <[email protected]> wrote: > > On 25/06/12 17:10 +0200, Romain wrote: > > > On Sun, Jun 24, 2012 at 9:32 PM, Cédric Krier <[email protected]> > > wrote: > > > > I think an important thing to take care is that a bank account could > > > > have multiple representation like national number and IBAN. > > > > > The IBAN only works mainly for european countries and can be calculated > > > from the national number, I'm not sure we need to store both > > informations. > > > The adoption is larger than Europe > >https://en.wikipedia.org/wiki/IBAN#Adoption > > I said "mainly Europe", and you're there is a few more country using it :) > > > > But I think each form should be stored in the database to be able to > > > search for it. And more over, we don't know if there will always be a > > transformation. > > We should store the iban number whatever the account is? Even for a us > account, whish is not compatible with the IBAN ? > >
I think we should store only one number AND a type. Depending on the type, we can call different methods to interpret the account number differently : validate it, extract the bank code, the branche code, the account code,... -- -- [email protected] mailing list
