On 23/06/12 03:15 -0700, sampac wrote:
> Does anyone know of a Tryton module to add bank information to a party
> (something like bank.partner.bank in OpenERP) ?
> If not I will code it so please give me any requirements you would
> have for such module
I think an important thing to take care is that a bank account could
have multiple representation like national number and IBAN.
On 25 juin, 17:10, Romain <rom1.try...@gmail.com> wrote:
> On Sun, Jun 24, 2012 at 9:32 PM, Cédric Krier <cedric.kr...@b2ck.com> wrote:Oh! What's your status Romain ? I'm nearly done with a module.
> > On 23/06/12 03:15 -0700, sampac wrote:
> > > Does anyone know of a Tryton module to add bank information to a party
> > > (something like bank.partner.bank in OpenERP) ?
> > > If not I will code it so please give me any requirements you would
> > > have for such module
>
> I'm also working on this subject.
>
> 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.
>
> Romain
>
I integrated extensible number of account types. For the moment I can
do IBAN with ibanlib and french RIB
> > Email/Jabber: cedric.kr...@b2ck.com
>
>
>
>
>
>
> > --
> > Cédric Krier
>
> > B2CK SPRL
> > Rue de Rotterdam, 4
> > 4000 Liège
> > Belgium
> > Tel: +32 472 54 46 59
> > Website:http://www.b2ck.com/
On 25/06/12 17:10 +0200, Romain wrote:
> On Sun, Jun 24, 2012 at 9:32 PM, Cédric Krier <cedric...@b2ck.com> wrote:
>
> I think an important thing to take care is that a bank account couldThe adoption is larger than Europe
> > 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.
https://en.wikipedia.org/wiki/IBAN#Adoption
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.
On 25/06/12 10:10 -0700, sampac wrote:I'm pretty sure that we must store all the different formats of an
> 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,...
account.
On 25/06/12 18:19 +0200, Rom1 wrote:
> On Mon, Jun 25, 2012 at 5:46 PM, Cédric Krier <cedric...@b2ck.com> wrote:
> But I think each form should be stored in the database to be able toOf course it makes no sense to store something that doesn't exist.
> > 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 ?
On 26/06/12 12:16 +0200, Rom1 wrote:I mean the "Bank Account" Model must contains a list of "Account Number"
> On Tue, Jun 26, 2012 at 10:10 AM, Cédric Krier <cedric...@b2ck.com>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.
with a type and the corresponding required fields.
Indeed I don't care about computing some of them or not, that's just a
minor feature. The important thing is the way data are stored.
On 26/06/12 14:25 +0200, Rom1 wrote:
> On Tue, Jun 26, 2012 at 12:32 PM, Cédric Krier <cedric...@b2ck.com>wrote:
> > I mean the "Bank Account" Model must contains a list of "Account Number"
> > with a type and the corresponding required fields.
> >
>A One2Many
> what do you mean a "list", a O2M of item with a char and a type, or just
> 4-5 char on the bank account table?
For now, from all the different kind of bank account number I know, a
> How do you deal with required fields as it is different for each country?
simple char field is enough.
I think a "Bank account" should have an address but it should be
> You still havn't answered my question, do you think we need to store the
> country? (This way for a french account we won't need to say it's a RIB).
investigated to know what is the common form for it.
> > Indeed I don't care about computing some of them or not, that's just aEarly overfeatured requirements is the best way to fail.
> > minor feature. The important thing is the way data are stored.
> >
> >
> For you, maybe, but for the user this is a key feature. :)
A Dissabte, 23 de juny de 2012 12:15:29, sampac va escriure:
> Does anyone know of a Tryton module to add bank information to a party
> (something like bank.partner.bank in OpenERP) ?
> If not I will code it so please give me any requirements you would
> have for such module
Please, take a look at this:
https://bitbucket.org/ukoma/party_bank/
--
Albert Cervera i Areny
Tel: +34 93 553 18 03