diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 9039d9dc16f8f44d2b78f147dc3c2d65a74cb899..3fa1c03b34f1e5cdbc11ad57c657f7eddac856d3 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -1208,9 +1208,6 @@ class AccountsController(TransactionBase): if self.doctype in ("Sales Invoice", "Purchase Invoice") and order_list: party_type = "Customer" if self.doctype == "Sales Invoice" else "Supplier" party = self.customer if self.doctype == "Sales Invoice" else self.supplier - party_account = get_party_account( - party_type, party, self.company, tax_category=self.get("tax_category"), include_advance=True - ) # @dokos amount_field = ( "credit_in_account_currency"