[FIX] account: tax line in invoice report
Steps to reproduce: - Accounting > Customers > Invoices > Create - Add one product line with tax 15% and one with no tax - Print > Invoices Issue: In the report, the 15% tax is applied correctly on the first product, but the taxed amount is not displayed. This is because lines without a tax are not being considered as a separate tax group. Fix: Add an additional condition in the xml to check if the amount of taxed money is equal to the invoice value. If not, then only a part of the invoice amount is being taxed, so it must be displayed. can be considered a forward-port of e213dab810724985dd62fb5f9a57f2bf6686a491 opw-2945837 closes odoo/odoo#100190 X-original-commit: 51064f233ca65b98d34503e2a11481d64ae8436a Signed-off-by: Olivier Colson (oco) <oco@odoo.com> Signed-off-by: Stefan-Calin Crainiciuc (stcc) <stcc@odoo.com>
This commit is contained in:
@@ -289,7 +289,7 @@
|
||||
-->
|
||||
<t t-foreach="tax_totals['groups_by_subtotal'][subtotal_to_show]" t-as="amount_by_group">
|
||||
<tr>
|
||||
<t t-if="len(tax_totals['groups_by_subtotal'][subtotal_to_show]) > 1">
|
||||
<t t-if="len(tax_totals['groups_by_subtotal'][subtotal_to_show]) > 1 or (tax_totals['amount_untaxed'] != amount_by_group['tax_group_base_amount'])">
|
||||
<td>
|
||||
<span t-esc="amount_by_group['tax_group_name']"/>
|
||||
<span class="text-nowrap"> on
|
||||
|
||||
Reference in New Issue
Block a user