mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 15:32:14 +00:00
Merge pull request #40855 from frappe/mergify/bp/version-15/pr-40808
fix: Receive payment entry from Employee (#40755)
This commit is contained in:
@@ -112,6 +112,9 @@ class PaymentEntry(AccountsController):
|
||||
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"
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user