Skip to content

Commit

Permalink
[FIX] Fix debit note fix tax
Browse files Browse the repository at this point in the history
  • Loading branch information
maq-adhoc authored and jjscarafia committed Sep 30, 2023
1 parent 790ca72 commit dedfc4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions account_invoice_tax/__manifest__.py
@@ -1,6 +1,6 @@
{
'name': 'Account Invoice Tax',
'version': "16.0.1.0.0",
'version': "16.0.1.2.0",
'author': 'ADHOC SA',
'category': 'Localization',
'depends': [
Expand All @@ -15,7 +15,7 @@
'web.assets_backend': [
'account_invoice_tax/static/src/xml/**/*',
],
},
},
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_tax/wizards/account_invoice_tax.py
Expand Up @@ -54,7 +54,7 @@ def _get_amount_updated_values(self):
if move_currency and move_currency != company_currency:
return {'amount_currency': self.amount if debit else -self.amount}

return {'debit': debit, 'credit': credit, 'balance': self.amount}
return {'debit': debit, 'credit': credit, 'balance': self.amount if debit else -self.amount}

def add_tax_and_new(self):
self.add_tax()
Expand Down

0 comments on commit dedfc4f

Please sign in to comment.