refactor: hooks for monthly re-evaluation jobs
(cherry picked from commit fc4e5f165c)
# Conflicts:
# erpnext/hooks.py
This commit is contained in:
@@ -1571,6 +1571,18 @@ def auto_create_exchange_rate_revaluation_weekly() -> None:
|
|||||||
create_err_and_its_journals(companies)
|
create_err_and_its_journals(companies)
|
||||||
|
|
||||||
|
|
||||||
|
def auto_create_exchange_rate_revaluation_monthly() -> None:
|
||||||
|
"""
|
||||||
|
Executed by background job
|
||||||
|
"""
|
||||||
|
companies = frappe.db.get_all(
|
||||||
|
"Company",
|
||||||
|
filters={"auto_exchange_rate_revaluation": 1, "auto_err_frequency": "Montly"},
|
||||||
|
fields=["name", "submit_err_jv"],
|
||||||
|
)
|
||||||
|
create_err_and_its_journals(companies)
|
||||||
|
|
||||||
|
|
||||||
def get_payment_ledger_entries(gl_entries, cancel=0):
|
def get_payment_ledger_entries(gl_entries, cancel=0):
|
||||||
ple_map = []
|
ple_map = []
|
||||||
if gl_entries:
|
if gl_entries:
|
||||||
|
|||||||
@@ -462,7 +462,11 @@ scheduler_events = {
|
|||||||
],
|
],
|
||||||
"monthly_long": [
|
"monthly_long": [
|
||||||
"erpnext.accounts.deferred_revenue.process_deferred_accounting",
|
"erpnext.accounts.deferred_revenue.process_deferred_accounting",
|
||||||
|
<<<<<<< HEAD
|
||||||
"erpnext.loan_management.doctype.process_loan_interest_accrual.process_loan_interest_accrual.process_loan_interest_accrual_for_demand_loans",
|
"erpnext.loan_management.doctype.process_loan_interest_accrual.process_loan_interest_accrual.process_loan_interest_accrual_for_demand_loans",
|
||||||
|
=======
|
||||||
|
"erpnext.accounts.utils.auto_create_exchange_rate_revaluation_monthly",
|
||||||
|
>>>>>>> fc4e5f165c (refactor: hooks for monthly re-evaluation jobs)
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user