commit | fb06ad7330fd31bf1def7b87a6c3b787650f1555 | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Mon Nov 20 13:26:02 2023 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Mon Nov 20 13:28:55 2023 +0530 |
tree | 41cd3e59b3d2546cf23378d5397482940024669b | |
parent | a5a534164374be332518eaf34ac25beb1133ea96 [diff] [blame] |
refactor: update scheduled job for bulk transaction
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",