Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][ADD] MIS Reports templates for Balance Sheet and Profit & Loss #203

Open
wants to merge 3 commits into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions l10n_be_mis_reports/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,26 @@
"depends": ["mis_builder", "l10n_be"], # OCA/account-financial-reporting
"data": [
"data/mis_report_styles.xml",
"data/mis_report_pl.xml",
"data/mis_report_bs.xml",
"data/mis_report_bs_m01-f.xml",
"data/mis_report_pl_m01-f.xml",
"data/mis_report_bs_m02-f.xml",
"data/mis_report_pl_m02-f.xml",
"data/mis_report_bs_m04-f.xml",
"data/mis_report_pl_m04-f.xml",
"data/mis_report_bs_m05-f.xml",
"data/mis_report_pl_m05-f.xml",
"data/mis_report_bs_m07-f.xml",
"data/mis_report_pl_m07-f.xml",
"data/mis_report_bs_m08-f.xml",
"data/mis_report_pl_m08-f.xml",
"data/mis_report_bs_m81-f.xml",
"data/mis_report_pl_m81-f.xml",
"data/mis_report_bs_m82-f.xml",
"data/mis_report_pl_m82-f.xml",
"data/mis_report_bs_m87-f.xml",
"data/mis_report_pl_m87-f.xml",
"data/mis_report_bs_deprecated.xml",
"data/mis_report_pl_deprecated.xml",
"data/mis_report_vat.xml",
],
"installable": True,
Expand Down
1,073 changes: 1,073 additions & 0 deletions l10n_be_mis_reports/data/mis_report_bs_m01-f.xml

Large diffs are not rendered by default.

1,368 changes: 1,368 additions & 0 deletions l10n_be_mis_reports/data/mis_report_bs_m02-f.xml

Large diffs are not rendered by default.

886 changes: 886 additions & 0 deletions l10n_be_mis_reports/data/mis_report_bs_m04-f.xml

Large diffs are not rendered by default.

1,158 changes: 1,158 additions & 0 deletions l10n_be_mis_reports/data/mis_report_bs_m05-f.xml

Large diffs are not rendered by default.

1,073 changes: 1,073 additions & 0 deletions l10n_be_mis_reports/data/mis_report_bs_m07-f.xml

Large diffs are not rendered by default.

886 changes: 886 additions & 0 deletions l10n_be_mis_reports/data/mis_report_bs_m08-f.xml

Large diffs are not rendered by default.

1,008 changes: 1,008 additions & 0 deletions l10n_be_mis_reports/data/mis_report_bs_m81-f.xml

Large diffs are not rendered by default.

1,303 changes: 1,303 additions & 0 deletions l10n_be_mis_reports/data/mis_report_bs_m82-f.xml

Large diffs are not rendered by default.

1,013 changes: 1,013 additions & 0 deletions l10n_be_mis_reports/data/mis_report_bs_m87-f.xml

Large diffs are not rendered by default.

397 changes: 397 additions & 0 deletions l10n_be_mis_reports/data/mis_report_pl_m01-f.xml

Large diffs are not rendered by default.

586 changes: 586 additions & 0 deletions l10n_be_mis_reports/data/mis_report_pl_m02-f.xml

Large diffs are not rendered by default.

399 changes: 399 additions & 0 deletions l10n_be_mis_reports/data/mis_report_pl_m04-f.xml

Large diffs are not rendered by default.

601 changes: 601 additions & 0 deletions l10n_be_mis_reports/data/mis_report_pl_m05-f.xml

Large diffs are not rendered by default.

399 changes: 399 additions & 0 deletions l10n_be_mis_reports/data/mis_report_pl_m07-f.xml

Large diffs are not rendered by default.

399 changes: 399 additions & 0 deletions l10n_be_mis_reports/data/mis_report_pl_m08-f.xml

Large diffs are not rendered by default.

397 changes: 397 additions & 0 deletions l10n_be_mis_reports/data/mis_report_pl_m81-f.xml

Large diffs are not rendered by default.

586 changes: 586 additions & 0 deletions l10n_be_mis_reports/data/mis_report_pl_m82-f.xml

Large diffs are not rendered by default.

399 changes: 399 additions & 0 deletions l10n_be_mis_reports/data/mis_report_pl_m87-f.xml

Large diffs are not rendered by default.

2,872 changes: 2,872 additions & 0 deletions l10n_be_mis_reports/i18n/de.po

Large diffs are not rendered by default.

1,866 changes: 1,851 additions & 15 deletions l10n_be_mis_reports/i18n/fr.po

Large diffs are not rendered by default.

2,102 changes: 1,964 additions & 138 deletions l10n_be_mis_reports/i18n/l10n_be_mis_reports.pot

Large diffs are not rendered by default.

1,855 changes: 1,848 additions & 7 deletions l10n_be_mis_reports/i18n/nl.po

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions l10n_be_mis_reports/script/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
generate_xml.sh is a script that use two python scripts (correct_xml and generate_xml) and
allow to generate a MIS Report Templates for the Balance Sheet and the Profit & Loss

**USAGE**

./generate_xml.sh -a AUTHOR_NAME -f XX -y YEAR

*Options*

-a : The author name for the copyright

-f : The file model (see bellow). You only need to specify the two digits of the model (mXX-f)

-y : The date of the copyright

**MODELS**

- Micro model company with capital [m07-f]
- Abridged model company with capital [m01-f]
- Full model company with capital [m02-f]
- Micro model company without capital [m87-f]
- Abridged model company without capital [m81-f]
- Full model company without capital [m82-f]
- Micro model association [m08-f]
- Abridged model association [m04-f]
- Full model association [m05-f]


**GENERATE_XML.py**

This python script generates the XML MIS Builder template for a specified model (see above)

It uses two JSON files. The first one is located in the 'data' folder and contains all the data of an annual account. The second file is located in the 'calc' folder and contains the rubrics' calculations.

There are also three mandatories options : --filename, --author and --year (see --help for more information)

*USAGE*

python generate_xml.py --filename=FILENAME --author=AUTHOR --year=YEAR data/mXX-f.json calc/22_19_mXX-f.json

Where XX correspond to the model that you want


**CORRECT_XML.py**

This python script corrects some calculations and styles of the XML MIS Builder template for a specified model.

*USAGE*

1) Balance Sheet
python correct_xml.py ../data/mis_report_bs_mXX.xml

2) Profit & Loss
python correct_xml.py ../data/mis_report_pl_mXX.xml

Where XX correspond to the model that you want
Loading
Loading