diff --git a/l10n_do_accounting/__manifest__.py b/l10n_do_accounting/__manifest__.py index f8fb94b96..87c5d46d5 100644 --- a/l10n_do_accounting/__manifest__.py +++ b/l10n_do_accounting/__manifest__.py @@ -8,7 +8,7 @@ "category": "Localization", "license": "LGPL-3", "website": "https://github.com/odoo-dominicana", - "version": "14.0.2.18.0", + "version": "14.0.2.18.1", # any module necessary for this one to work correctly "depends": ["l10n_latam_invoice_document", "l10n_do"], # always loaded diff --git a/l10n_do_accounting/models/account_move_line.py b/l10n_do_accounting/models/account_move_line.py index 50eb3c109..cf6fa8fd1 100644 --- a/l10n_do_accounting/models/account_move_line.py +++ b/l10n_do_accounting/models/account_move_line.py @@ -38,8 +38,11 @@ def _get_price_total_and_subtotal( line_itbis_taxes = self.tax_ids.filtered( lambda t: t.tax_group_id == self.env.ref("l10n_do.group_itbis") ) + price_unit = self.price_unit + if self.discount: + price_unit = price_unit - (price_unit * (self.discount / 100)) itbis_taxes_data = line_itbis_taxes.compute_all( - price_unit=self.price_unit, + price_unit=price_unit, quantity=self.quantity, ) res["l10n_do_itbis_amount"] = sum(