From 6471029dab65c8d911ede9165fa3a706969f786e 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 070556890b..c123351bb5 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -1164,9 +1164,7 @@ 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")), - ) # @dokos + amount_field = ( "credit_in_account_currency" if self.doctype == "Sales Invoice" -- GitLab