Activity Summary to not show cancelled timesheets on click

Clicking an Activity Type in the Activity summary portion of project will add filter of "Status" != "Cancelled"
This commit is contained in:
superlack 2016-09-12 21:18:41 -07:00 committed by GitHub
parent fcbb7692fa
commit 1579565e52

View File

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