[Fix] Billing Hours showing blank on sales invoice

This commit is contained in:
Rohit Waghchaure
2016-08-29 13:37:13 +05:30
parent 955b979a97
commit a2bf16bfaa
3 changed files with 12 additions and 1 deletions

View File

@@ -313,7 +313,7 @@ def get_events(start, end, filters=None):
conditions = get_conditions(filters)
return frappe.db.sql("""select `tabTimesheet Detail`.name as name, `tabTimesheet Detail`.parent as parent,
from_time, hours, activity_type, project, to_time from `tabTimesheet Detail`,
`tabTimesheet` where `tabTimesheet Detail`.parent = `tabTimesheet`.name and
`tabTimesheet` where `tabTimesheet Detail`.parent = `tabTimesheet`.name and `tabTimesheet`.docstatus < 2 and
(from_time between %(start)s and %(end)s) {conditions}""".format(conditions=conditions),
{
"start": start,