On Tue, Jun 26, 2012 at 10:10 AM, Cédric Krier <[email protected]>wrote:
> On 25/06/12 10:10 -0700, sampac wrote: > > 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,... > > I'm pretty sure that we must store all the different formats of an > account. > I don't know what are the information needed for each country. Do you think, we also need to store the country information (needed for the iban) or we juste need the Iban (that contains the country) ? If so, we could calculate the iban with an on_change on the other fields, otherwise if the account is a RIB I could calculate the IBAN but I don't know how I could go further. > -- > Cédric Krier > > B2CK SPRL > Rue de Rotterdam, 4 > 4000 Liège > Belgium > Tel: +32 472 54 46 59 > Email/Jabber: [email protected] > Website: http://www.b2ck.com/ > -- -- [email protected] mailing list
