From aa35770423d313a3958938740d3eda4a67ef8d1b Mon Sep 17 00:00:00 2001 From: CoiledCoder Date: Mon, 25 Aug 2025 02:07:05 +0000 Subject: [PATCH] fix: correct typo in monthly auto exchange rate revaluation filter The "auto_create_exchange_rate_revaluation_monthly" function was using the wrong filter key `"Montly"` instead of `"Monthly"`. As a result, no companies configured for monthly ERR were being processed. (cherry picked from commit 19729a307fb749b8513e3edece27ede5c22230c5) --- erpnext/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index baeaca2f354..11df188832f 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -1773,7 +1773,7 @@ def auto_create_exchange_rate_revaluation_monthly() -> None: """ companies = frappe.db.get_all( "Company", - filters={"auto_exchange_rate_revaluation": 1, "auto_err_frequency": "Montly"}, + filters={"auto_exchange_rate_revaluation": 1, "auto_err_frequency": "Monthly"}, fields=["name", "submit_err_jv"], ) create_err_and_its_journals(companies)