fix: query HD Ticket instead of Issue in support hour distribution

Restores the report query change from #3502 (reverted in #3512),
matching the report's ref_doctype change to HD Ticket.
This commit is contained in:
Ritvik Sardana
2026-06-29 15:13:49 +05:30
parent c5d09133e5
commit a5d4c45cda
@@ -61,7 +61,7 @@ def get_data(filters):
def get_hours_count(start_time, end_time):
data = (
frappe.db.sql(
""" select count(*) from `tabIssue` where creation
""" select count(*) from `tabHD Ticket` where creation
between %(start_time)s and %(end_time)s""",
{"start_time": start_time, "end_time": end_time},
as_list=1,