From cc827c8077bd0f358ee23c01e92c2ef168c4b4d8 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 13:59:42 +0530 Subject: [PATCH] fix: fetch advance payment entries on pos invoice (backport #44856) (#44931) fix: fetch advance payment entries on pos invoice (cherry picked from commit a7078e5702aa620e577b51d6062c6908153f2b11) Co-authored-by: Diptanil Saha --- erpnext/controllers/accounts_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index d87a11f79f4..f9c875477b9 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -1226,7 +1226,7 @@ class AccountsController(TransactionBase): party_account = [] default_advance_account = None - if self.doctype == "Sales Invoice": + if self.doctype in ["Sales Invoice", "POS Invoice"]: party_type = "Customer" party = self.customer amount_field = "credit_in_account_currency"