feat: add for query report
This commit is contained in:
parent
76df92ffda
commit
0b9a5a4c46
1 changed files with 13 additions and 0 deletions
|
|
@ -1789,6 +1789,19 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
this.$chart.toggle(flag);
|
||||
this.$summary.toggle(flag);
|
||||
}
|
||||
|
||||
get_checked_items(only_docnames) {
|
||||
const indexes = this.datatable.rowmanager.getCheckedRows();
|
||||
|
||||
return indexes.reduce((items, i) => {
|
||||
if (i === undefined) return items;
|
||||
|
||||
const item = this.data[i];
|
||||
items.push(only_docnames ? item.name : item);
|
||||
return items;
|
||||
}, []);
|
||||
}
|
||||
|
||||
// backward compatibility
|
||||
get get_values() {
|
||||
return this.get_filter_values;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue