Skip to content

Commit

Permalink
[IMP] l10n_dk: tax implementation, fix and last fine tuning
Browse files Browse the repository at this point in the history
The aim of this commit is to:
- correct the implementation of the restaurationMoms
- add a price_include version of restauraionMoms
- make a better implementation of the energy tax

before this commit:
The implementation of the restaurationMoms is completly false.
The implementation of tax energy is quite complicated and makes
the UI display a "0 tax value".

after this commit:
2 restaurationMoms version and both are correct.
Tax energy implementation is more user-friendly and more correct
regarding information displayed by the UI.

closes #84004

Task: #2748309
Pr: #83666
X-original-commit: 7d4dcf7
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Brice Bartoletti <bib@odoo.com>
  • Loading branch information
Levizar committed Feb 4, 2022
1 parent 1ae9a47 commit 9a9d61f
Showing 1 changed file with 61 additions and 9 deletions.
70 changes: 61 additions & 9 deletions addons/l10n_dk/data/account_tax_template_data.xml
Expand Up @@ -328,7 +328,7 @@
<field name="sequence">450</field>
<field name="name">Restaurationsmoms 6,25%, købsmoms</field>
<field name="description">6,25%</field>
<field name="amount">6.25</field>
<field name="amount">25</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">purchase</field>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
Expand All @@ -337,22 +337,72 @@
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'factor_percent': 25,
'repartition_type': 'tax',
'account_id': ref('a8740'),
'plus_report_line_ids': [ref('l10n_dk.account_tax_report_line_deduction_purchase_tax')],
}),
(0,0, {
'factor_percent': 75,
'repartition_type': 'tax',
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 25,
'repartition_type': 'tax',
'account_id': ref('a8740'),
'plus_report_line_ids': [ref('l10n_dk.account_tax_report_line_deduction_purchase_tax')],
}),
(0,0, {
'factor_percent': 75,
'repartition_type': 'tax',
}),
]"/>
</record>
<record id="tax460" model="account.tax.template">
<field name="chart_template_id" ref="dk_chart_template"/>
<field name="sequence">450</field>
<field name="name">Restaurationsmoms indeholdt 6,25%, købsmoms</field>
<field name="description">6,25%</field>
<field name="amount">25</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">purchase</field>
<field name="price_include" eval="True"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 25,
'repartition_type': 'tax',
'account_id': ref('a8740'),
'minus_report_line_ids': [ref('l10n_dk.account_tax_report_line_deduction_purchase_tax')],
'plus_report_line_ids': [ref('l10n_dk.account_tax_report_line_deduction_purchase_tax')],
}),
(0,0, {
'factor_percent': 75,
'repartition_type': 'tax',
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 25,
'repartition_type': 'tax',
'account_id': ref('a8740'),
'plus_report_line_ids': [ref('l10n_dk.account_tax_report_line_deduction_purchase_tax')],
}),
(0,0, {
'factor_percent': 75,
'repartition_type': 'tax',
}),
]"/>
</record>
Expand Down Expand Up @@ -553,7 +603,8 @@
<field name="sequence">710</field>
<field name="name">Olie- og flaskegasafgift</field>
<field name="amount">100</field>
<field name="amount_type">percent</field>
<field name="amount_type">division</field>
<field name="price_include" eval="True"/>
<field name="type_tax_use">purchase</field>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
Expand All @@ -567,7 +618,7 @@
'plus_report_line_ids': [ref('l10n_dk.account_tax_report_line_deduction_oil_bottle_tax')],
}),
(0,0, {
'factor_percent': -92.83,
'factor_percent': 7.17,
'repartition_type': 'tax',
}),
]"/>
Expand All @@ -583,7 +634,7 @@
'minus_report_line_ids': [ref('l10n_dk.account_tax_report_line_deduction_oil_bottle_tax')],
}),
(0,0, {
'factor_percent': -92.83,
'factor_percent': 7.17,
'repartition_type': 'tax',
}),
]"/>
Expand Down Expand Up @@ -631,7 +682,8 @@
<field name="sequence">730</field>
<field name="name">Naturgas- og bygasafgift</field>
<field name="amount">100</field>
<field name="amount_type">percent</field>
<field name="amount_type">division</field>
<field name="price_include" eval="True"/>
<field name="type_tax_use">purchase</field>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
Expand All @@ -645,7 +697,7 @@
'plus_report_line_ids': [ref('l10n_dk.account_tax_report_line_deduction_gas_tax')],
}),
(0,0, {
'factor_percent': -92.83,
'factor_percent': 7.17,
'repartition_type': 'tax',
}),
]"/>
Expand All @@ -661,7 +713,7 @@
'minus_report_line_ids': [ref('l10n_dk.account_tax_report_line_deduction_gas_tax')],
}),
(0,0, {
'factor_percent': -92.83,
'factor_percent': 7.17,
'repartition_type': 'tax',
}),
]"/>
Expand Down

0 comments on commit 9a9d61f

Please sign in to comment.