From 78cd25de04193849fd432c617f204951547b7f7c Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Tue, 4 Aug 2026 23:58:19 +0530 Subject: [PATCH] fix(payment reconciliation): correct supplier gain/loss posting (cherry picked from commit dc907add4012b29755e5f12edea2d453bb3a6066) --- erpnext/controllers/accounts_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 365e481890f..7f2afecaf9f 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -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