Merge pull request #40855 from frappe/mergify/bp/version-15/pr-40808

fix: Receive payment entry from Employee (#40755)
This commit is contained in:
Deepesh Garg
2024-04-04 14:26:36 +05:30
committed by GitHub

View File

@@ -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"
):