diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 3bf144291eec7c17199983e35ec69504f4c4eabf..8c74e10079b9eb279377a5a9b9b72abc67c87106 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -852,17 +852,18 @@ class AccountsController(TransactionBase): for row in item_tax_rate: account_head = row.get("account") - self.append( - "taxes", - { - "charge_type": row.get("charge_type") or "On Net Total", - "account_head": account_head, - # Rate is zero by convention when applied from item tax template - "rate": 0, - "description": row.get("description") or account_head, - "included_in_print_rate": row.get("included_in_print_rate", 0), - }, - ) + if not self.get_tax_row(account_head): + self.append( + "taxes", + { + "charge_type": row.get("charge_type") or "On Net Total", + "account_head": account_head, + # Rate is zero by convention when applied from item tax template + "rate": 0, + "description": row.get("description") or account_head, + "included_in_print_rate": row.get("included_in_print_rate", 0), + }, + ) def get_tax_row(self, account_head): for row in self.taxes: