mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: Missing quotation marks in SQL query
This commit is contained in:
@@ -91,10 +91,10 @@ class EmployeeHoursReport:
|
|||||||
additional_filters = ''
|
additional_filters = ''
|
||||||
|
|
||||||
if self.filters.employee:
|
if self.filters.employee:
|
||||||
additional_filters += f'AND tt.employee = {self.filters.employee}'
|
additional_filters += f"AND tt.employee = '{self.filters.employee}'"
|
||||||
|
|
||||||
if self.filters.project:
|
if self.filters.project:
|
||||||
additional_filters += f'AND ttd.project = {self.filters.project}'
|
additional_filters += f"AND ttd.project = '{self.filters.project}'"
|
||||||
|
|
||||||
self.filtered_time_logs = frappe.db.sql('''
|
self.filtered_time_logs = frappe.db.sql('''
|
||||||
SELECT tt.employee AS employee, ttd.hours AS hours, ttd.billable AS billable, ttd.project AS project
|
SELECT tt.employee AS employee, ttd.hours AS hours, ttd.billable AS billable, ttd.project AS project
|
||||||
|
|||||||
Reference in New Issue
Block a user