Merge pull request #6352 from superlack/patch-1

Activity Summary to not show cancelled timesheets on click
This commit is contained in:
Nabin Hait 2016-09-14 15:27:02 +05:30 committed by GitHub
commit 2e8eff3456

View File

@ -78,7 +78,7 @@ frappe.ui.form.on("Project", {
section.on('click', '.time-sheet-link', function() { section.on('click', '.time-sheet-link', function() {
var activity_type = $(this).attr('data-activity_type'); var activity_type = $(this).attr('data-activity_type');
frappe.set_route('List', 'Timesheet', frappe.set_route('List', 'Timesheet',
{'activity_type': activity_type, 'project': frm.doc.name}); {'activity_type': activity_type, 'project': frm.doc.name, 'status': ["!=", "Cancelled"]});
}); });
} }
} }