From a7078e5702aa620e577b51d6062c6908153f2b11 Mon Sep 17 00:00:00 2001 From: Diptanil Saha Date: Mon, 23 Dec 2024 15:54:16 +0530 Subject: [PATCH] fix: fetch advance payment entries on pos invoice --- 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 bc2ebf75273..db49882c8b3 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -1233,7 +1233,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"