fix(payment reconciliation): correct supplier gain/loss posting

(cherry picked from commit dc907add40)
This commit is contained in:
diptanilsaha
2026-08-04 23:58:19 +05:30
committed by Mergify
parent 431dc2e5f1
commit 78cd25de04

View File

@@ -1869,7 +1869,7 @@ class AccountsController(TransactionBase):
def is_payable_account(self, reference_doctype, account):
if reference_doctype == "Purchase Invoice" or (
reference_doctype == "Journal Entry"
reference_doctype in ("Journal Entry", "Payment Entry")
and frappe.get_cached_value("Account", account, "account_type") == "Payable"
):
return True