Merge pull request #38212 from ruthra-kumar/update_hook
refactor: update scheduled job for bulk transaction
diff --git a/erpnext/hooks.py b/erpnext/hooks.py
index 55ffaca..c6ab6f1 100644
--- a/erpnext/hooks.py
+++ b/erpnext/hooks.py
@@ -421,7 +421,7 @@
"hourly_long": [
"erpnext.accounts.doctype.process_subscription.process_subscription.create_subscription_process",
"erpnext.stock.doctype.repost_item_valuation.repost_item_valuation.repost_entries",
- "erpnext.bulk_transaction.doctype.bulk_transaction_log.bulk_transaction_log.retry_failing_transaction",
+ "erpnext.utilities.bulk_transaction.retry",
],
"daily": [
"erpnext.support.doctype.issue.issue.auto_close_tickets",
diff --git a/erpnext/utilities/bulk_transaction.py b/erpnext/utilities/bulk_transaction.py
index 57c2f9d..df21b61 100644
--- a/erpnext/utilities/bulk_transaction.py
+++ b/erpnext/utilities/bulk_transaction.py
@@ -30,7 +30,10 @@
@frappe.whitelist()
-def retry(date: str | None):
+def retry(date: str | None = None):
+ if not date:
+ date = today()
+
if date:
failed_docs = frappe.db.get_all(
"Bulk Transaction Log Detail",