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

This commit is contained in:
Sudharsanan11
2026-08-02 16:21:40 +05:30
committed by Sudharsanan Ashok
parent 915eef0355
commit 4688ddd217

View File

@@ -195,7 +195,7 @@ def make_exchange_gain_loss_journal(
def is_payable_account(reference_doctype: str, account: str) -> bool:
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