Skip to content

Commit

Permalink
[FIX] l10n_do_accounting: fix when computing l10n_do_itbis_amount (#1119
Browse files Browse the repository at this point in the history
) (#1120) (#1121)
  • Loading branch information
daniel-pcg committed Nov 20, 2023
1 parent 6a674d1 commit 562abe5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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.3.0",
"version": "16.0.1.3.1",
# any module necessary for this one to work correctly
"depends": ["l10n_latam_invoice_document", "l10n_do"],
# always loaded
Expand Down
5 changes: 4 additions & 1 deletion l10n_do_accounting/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ def _compute_totals(self):
line_itbis_taxes = line.tax_ids.filtered(
lambda t: t.tax_group_id == self.env.ref("l10n_do.group_itbis")
)
price_unit = line.price_unit
if line.discount:
price_unit = price_unit - (price_unit * (line.discount / 100))
itbis_taxes_data = line_itbis_taxes.compute_all(
price_unit=line.price_unit,
price_unit=price_unit,
quantity=line.quantity,
)
line.l10n_do_itbis_amount = sum(
Expand Down

0 comments on commit 562abe5

Please sign in to comment.