mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 09:35:03 +00:00
@@ -11,16 +11,17 @@ def execute():
|
|||||||
frappe.db.set_single_value("Accounts Settings", "reconciliation_queue_size", 5)
|
frappe.db.set_single_value("Accounts Settings", "reconciliation_queue_size", 5)
|
||||||
|
|
||||||
# Create Scheduler Event record if it doesn't exist
|
# Create Scheduler Event record if it doesn't exist
|
||||||
method = "erpnext.accounts.doctype.process_payment_reconciliation.process_payment_reconciliation.trigger_reconciliation_for_queued_docs"
|
if frappe.reload_doc("core", "doctype", "scheduler_event"):
|
||||||
if not frappe.db.get_all(
|
method = "erpnext.accounts.doctype.process_payment_reconciliation.process_payment_reconciliation.trigger_reconciliation_for_queued_docs"
|
||||||
"Scheduler Event", {"scheduled_against": "Process Payment Reconciliation", "method": method}
|
if not frappe.db.get_all(
|
||||||
):
|
"Scheduler Event", {"scheduled_against": "Process Payment Reconciliation", "method": method}
|
||||||
frappe.get_doc(
|
):
|
||||||
{
|
frappe.get_doc(
|
||||||
"doctype": "Scheduler Event",
|
{
|
||||||
"scheduled_against": "Process Payment Reconciliation",
|
"doctype": "Scheduler Event",
|
||||||
"method": method,
|
"scheduled_against": "Process Payment Reconciliation",
|
||||||
}
|
"method": method,
|
||||||
).save()
|
}
|
||||||
|
).save()
|
||||||
|
|
||||||
sync_auto_reconcile_config(15)
|
sync_auto_reconcile_config(15)
|
||||||
|
|||||||
Reference in New Issue
Block a user