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 19729a307f)
This commit is contained in:
CoiledCoder
2025-08-25 02:07:05 +00:00
committed by Mergify
parent bd40106c7d
commit aa35770423

View File

@@ -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)