On 15/09/11 12:47 +0200, Jordi Esteve wrote: > En/na Cédric Krier ha escrit: > >On 15/09/11 03:06 -0700, Jordi Esteve wrote: > >>In current version of Tryton you can set customer and supplier tax > >>rules. But I don't know how to set account mapping rules, I think this > >>is a missing feature in Tryton. > >> > >>Account mapping rules are implemented in OpenERP inside the fiscal > >>position object. They allow change some accounts to other accounts in > >>an account move created from an invoice for a party using this account > >>mapping rules. This feature is very important for some countries, like > >>Spain. > > > >Could you explain exactly what is it? With an example/scenario/use case. > Is the same that the taxes rules defined in Tryton but applied to > accounts (account.account). > > For example, in Spain we have these 3 main "Fiscal positions": > > National: For Spain parties. > Intra-community: For European Union parties. > Extra-community: For the other parties (no EU countries). > > For sales of National parties we must use 7000, 7010, 7020, 7030, > 7040, 7050 accounts. They are defined in product or product > category. > > For sales of Intra-community parties we must use 7001, 7011, 7021, > 7031, 7041, 7051 accounts. So we need this mapping when we add > invoice lines: > 7000 -> 7001 > 7010 -> 7011 > 7020 -> 7021 > 7030 -> 7031 > 7040 -> 7041 > 7050 -> 7051
Ok I see it.
Indeed I doubt about the fact that it is a requirement.
Let me explain how this concept comes in OpenERP:
Once upon a time in a tiny Belgium company, a programmer wanted to import
chart of accounts for many countries in his software. For that he wrote a
script that converted the chart of accounts from an other software (don't
remember if it was Sage, Ciel, Bob or an other).
So the Belgium chart of account got many 70x accounts which was splitted by
type of products, destination countries (in Belgium, in Europe and others)
etc. (I guess it is the same of other countries)
This did not work well with the design of the software and then they added
rules to substitude accounts depending of some parameters.
When I started to implement the Belgium chart of account for Tryton, I look at
it but I found it was really strange to have this split. I read books about
accounting and in Belgium there is an official published minimal account
chart. This chart doesn't make the split indeed it just says that you can use
the accounts from 700 to 707 (and create any number of child-accounts in it).
That's why there is no substitude functionnality in the base of Tryton because
it is not needed.
Indeed I suspect that this split comes from a time where accounting was done
by hand (or spreadsheet) and not with relational database.
Because the main goal for this is just reporting, in Belgium you have the VAT
report to generate (like in any Europe countries) for which you must give
exactly the amount of sale splitted like in the account.
Strange? No, I guess most of the softwares use the accounts for this report but
in Tryton (and also in OpenERP), there is the tax code chart which works like
accounts but is specialy design for taxes reporting and you can get this sale
values from there (using the base tax amount code).
In conclusion, my question is:
Is it really a requirements?
Or is it just because other softwares (or accountants) do this way?
--
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/
pgpx7hTyTGJZ1.pgp
Description: PGP signature
