Skip to content

Commit

Permalink
Update hooks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
maniamartial authored Apr 13, 2024
1 parent c63a742 commit b53e578
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions burundi_compliance/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,18 @@
##################################################################################################################
##############################Remember to change the cron job to the correct time#################################
##################################################################################################################
# from burundi_compliance.burundi_compliance.utils.event_frequency_schedular import get_event_frequency
# invoice_frequency, stock_movement_frequency = get_event_frequency()
from burundi_compliance.burundi_compliance.utils.event_frequency_schedular import get_event_frequency
invoice_frequency, stock_movement_frequency = get_event_frequency()

# scheduler_events = {
scheduler_events = {

# "cron":{
# f"{invoice_frequency}":["burundi_compliance.burundi_compliance.utils.schedular.check_and_send_pending_sales_invoices"],
# f"{stock_movement_frequency}":["burundi_compliance.burundi_compliance.utils.schedular.check_and_send_pending_stock_ledger_entry"],
"cron":{
f"{invoice_frequency}":["burundi_compliance.burundi_compliance.utils.schedular.check_and_send_pending_sales_invoices"],
f"{stock_movement_frequency}":["burundi_compliance.burundi_compliance.utils.schedular.check_and_send_pending_stock_ledger_entry"],

# },
},

# }
}

# import frappe
# frappe.throw(f"{invoice_frequency} {stock_movement_frequency}")
Expand Down

0 comments on commit b53e578

Please sign in to comment.