From c097e64d33b1846aedcb8e7608d8eebbd6a25ef6 Mon Sep 17 00:00:00 2001 From: Charles-Henri Decultot Date: Mon, 27 May 2024 12:05:01 +0200 Subject: [PATCH] fix: Don't reset party account in query --- erpnext/controllers/accounts_controller.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 9039d9dc16..3fa1c03b34 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" -- GitLab