Skip to content

Commit

Permalink
[FIX] l10n_do_accounting: wrong calc of Monto Descuento (#1111) (#1112)
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-pcg committed Oct 3, 2023
1 parent a4bdb7d commit 6a674d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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": "16.0.1.2.0",
"version": "16.0.1.3.0",
# any module necessary for this one to work correctly
"depends": ["l10n_latam_invoice_document", "l10n_do"],
# always loaded
Expand Down
5 changes: 1 addition & 4 deletions l10n_do_accounting/views/report_invoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,7 @@
<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 6a674d1

Please sign in to comment.