chore: resolve linting issue
diff --git a/erpnext/bulk_transaction/doctype/bulk_transaction_log/bulk_transaction_log.py b/erpnext/bulk_transaction/doctype/bulk_transaction_log/bulk_transaction_log.py
index 4febb48..1a078b5 100644
--- a/erpnext/bulk_transaction/doctype/bulk_transaction_log/bulk_transaction_log.py
+++ b/erpnext/bulk_transaction/doctype/bulk_transaction_log/bulk_transaction_log.py
@@ -8,14 +8,13 @@
 from frappe.utils import cint
 from pypika import Order
 
-log_detail = qb.DocType("Bulk Transaction Log Detail")
-
 
 class BulkTransactionLog(Document):
 	def db_insert(self, *args, **kwargs):
 		pass
 
 	def load_from_db(self):
+		log_detail = qb.DocType("Bulk Transaction Log Detail")
 		succeeded_logs = (
 			qb.from_(log_detail)
 			.select(Count(log_detail.date).as_("count"))
@@ -41,6 +40,7 @@
 
 	@staticmethod
 	def get_list(args):
+		log_detail = qb.DocType("Bulk Transaction Log Detail")
 		limit = cint(args.get("page_length")) or 20
 		dates = (
 			qb.from_(log_detail)