Al 16/02/13 19:18, En/na Cédric Krier ha escrit:
On 16/02/13 19:14 +0100, Albert Cervera i Areny wrote:
A Dissabte, 16 de febrer de 2013 18:56:41, Cédric Krier va escriure:
On 16/02/13 18:53 +0100, Albert Cervera i Areny wrote:
A Dissabte, 16 de febrer de 2013 18:26:34, Cédric Krier va escriure:
On 16/02/13 18:23 +0100, Albert Cervera i Areny wrote:
A Divendres, 15 de febrer de 2013 16:23:42, Cédric Krier va escriure:
On 11/01/13 11:16 +0000, [email protected] wrote:
Reviewers: ,
Please review this at http://codereview.tryton.org/637002/
I'm wondering as both account_es and account_es_pyme are quite
large. Is not it possible have them sharing the same template?
If I remember well, I think one is just a subset of the other?
It should be possible for accounts, currently those XMLs are
generated using some scripts.
What is the source?
Some CSV files. We created them to handle some complex Spanish taxes that
make tax templates in Tryton to explode, and we can also avoid some
stupid mistakes we did in the past due to that duplication.
I don't understand. You wrote a CSV file to generate a XML file ?!?!?
Yes. Maybe Jesús can explain better but basically we only have to manage some
taxes and the explosion of combinations required by tryton is handled by the
script.
Ok, I think there is a mistake to create all the combinations of
different taxes.
A better system must be found, I can help but I need to have all the
information.
Albert explanation is not accurate. The script doesn't not explode
Spanish taxes from CSV data. It only explodes some of the Spanish tax
rules and some composed taxes related to them because we have not found
and easy way to manage them. This has been discussed in [1]. In this
issue I explained you (Cédric) several complex Spanish taxes rules and,
in your last comment, you answered "Create a composed taxes for each
cases because if I understand well, both taxes are inseparable." That is
what we have done. And to do it in an easy way, we manage CSV files and
with the help of a Python script we create the xml files from these CSV
files.
So, the reasons for managing CSV files and create xml files for
account_es and account_es_pyme modules are:
1) It is easier to manage CSV files than XML files. CSV files are more
compact and easy to deal with a spreadsheet application.
2) It is easier to share these CSV files with accountant people how
knows if the accounts, taxes, tax rules, ... are correct or not. You
must take into account that in Spain there are lot of different taxes,
so we have to define a lot of taxes and tax codes. This is one of the
reasons that the Spanish XML files are bigger than other other countries.
3) It is easier to create some tax rules in Tryton, because we have to
create some composed taxes for some tax rules.
However, as Raimon has told, managing CSV files and a Python script to
convert them to Tryton XML files is an internal decision of the Spanish
account localization team. The project is public [2] but other Tryton
account localization teams could use this approach or not.
Jordi
[1] https://bugs.tryton.org/issue2871
[2] https://bitbucket.org/trytonspain/tryton-account_es_csv2xml
--
Jordi Esteve
Consultor Zikzakmedia SL
[email protected]
Mòbil 679 170 693
Zikzakmedia SL
Dr. Fleming, 28, baixos
08720 Vilafranca del Penedès
Tel 93 890 2108
--
--
[email protected] mailing list
---
You received this message because you are subscribed to the Google Groups "tryton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.