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.
This commit is contained in:
CoiledCoder
2025-08-25 02:07:05 +00:00
parent 44634cde63
commit 19729a307f

View File

@@ -1803,7 +1803,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)