Skip to content

Commit

Permalink
[FIX] l10n_do_accounting: wrong calc of Monto Descuento
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-pcg committed Oct 3, 2023
1 parent 42a6196 commit 371f035
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion l10n_do_accounting/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"category": "Localization",
"license": "LGPL-3",
"website": "https://github.com/odoo-dominicana",
"version": "13.0.1.12.8",
"version": "13.0.1.13.0",
# any module necessary for this one to work correctly
"depends": ["l10n_latam_invoice_document", "l10n_do"],
# always loaded
Expand Down
3 changes: 1 addition & 2 deletions l10n_do_accounting/views/report_invoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@
</xpath>
<xpath expr="//td[@t-if='display_discount']" position="after">
<td t-if="is_l10n_do_invoice and display_discount and ecf_representation" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
<t t-set="price_unit_wo_discount" t-value="line.price_unit * (1 - (line.discount / 100.0))"/>
<t t-set="discount_amount" t-value="abs(price_unit_wo_discount) if line.discount else 0"/>
<t t-set="discount_amount" t-value="line.price_unit * line.quantity * line.discount / 100"/>
<span class="text-nowrap" t-esc="discount_amount"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
Expand Down

0 comments on commit 371f035

Please sign in to comment.