mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: timesheet filter date exclusive issue (#25626)
This commit is contained in:
@@ -209,7 +209,7 @@ def get_projectwise_timesheet_data(project, parent=None, from_time=None, to_time
|
|||||||
if parent:
|
if parent:
|
||||||
condition = "AND parent = %(parent)s"
|
condition = "AND parent = %(parent)s"
|
||||||
if from_time and to_time:
|
if from_time and to_time:
|
||||||
condition += "AND from_time BETWEEN %(from_time)s AND %(to_time)s"
|
condition += "AND CAST(from_time as DATE) BETWEEN %(from_time)s AND %(to_time)s"
|
||||||
|
|
||||||
return frappe.db.sql("""select name, parent, billing_hours, billing_amount as billing_amt
|
return frappe.db.sql("""select name, parent, billing_hours, billing_amount as billing_amt
|
||||||
from `tabTimesheet Detail` where parenttype = 'Timesheet' and docstatus=1 and project = %(project)s {0} and billable = 1
|
from `tabTimesheet Detail` where parenttype = 'Timesheet' and docstatus=1 and project = %(project)s {0} and billable = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user