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"