mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 01:07:19 +00:00
refactor: use correct hook for identifying advance doctypes
This commit is contained in:
@@ -1166,9 +1166,7 @@ class PaymentEntry(AccountsController):
|
||||
if not self.party_account:
|
||||
return
|
||||
|
||||
advance_payment_doctypes = frappe.get_hooks("advance_payment_receivable_doctypes") + frappe.get_hooks(
|
||||
"advance_payment_payable_doctypes"
|
||||
)
|
||||
advance_payment_doctypes = frappe.get_hooks("advance_payment_doctypes")
|
||||
|
||||
if self.payment_type == "Receive":
|
||||
against_account = self.paid_to
|
||||
|
||||
Reference in New Issue
Block a user