fix: Receive payment entry from Employee

(cherry picked from commit 29e5c6807e)
This commit is contained in:
Deepesh Garg
2024-03-29 09:05:35 +05:30
committed by Mergify
parent 3971ff5f72
commit 0cee954f84

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