From 2fa9d7cee604675632d906d8ad66d6927b8342d2 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Wed, 17 Jun 2026 15:42:02 +0530 Subject: [PATCH] fix(postgres): match stored "Exchange Gain Or Loss" voucher_type casing Co-Authored-By: Claude Opus 4.8 (1M context) --- erpnext/accounts/services/exchange_gain_loss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/services/exchange_gain_loss.py b/erpnext/accounts/services/exchange_gain_loss.py index fa3af053a18..870266d2a99 100644 --- a/erpnext/accounts/services/exchange_gain_loss.py +++ b/erpnext/accounts/services/exchange_gain_loss.py @@ -141,7 +141,7 @@ def make_exchange_gain_loss_journal( .where( (je.docstatus == 1) & (je.name.isin(parents)) - & (je.voucher_type == "Exchange Gain or Loss") + & (je.voucher_type == "Exchange Gain Or Loss") ) .run() )