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 b4d1d39..c6a5702 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"
):