Merge pull request #40755 from deepeshgarg007/employee_payment_entry_receive
fix: Receive payment entry from Employee
diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py
index e2041bf..1b34bb9 100644
--- a/erpnext/accounts/doctype/payment_entry/payment_entry.py
+++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py
@@ -194,6 +194,9 @@
if self.docstatus > 0 or self.payment_type == "Internal Transfer":
return
+ if self.party_type not in ("Customer", "Supplier"):
+ return
+
if not frappe.db.get_value(
"Company", self.company, "book_advance_payments_in_separate_party_account"
):