[fix] Codacy issue
This commit is contained in:
parent
e9166d7c19
commit
09d56754ea
@ -69,7 +69,6 @@ frappe.Leaderboard = Class.extend({
|
|||||||
me.options.selected_company = this.value;
|
me.options.selected_company = this.value;
|
||||||
me.make_request($container);
|
me.make_request($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
this.timespan_select = this.page.add_select(__("Timespan"),
|
this.timespan_select = this.page.add_select(__("Timespan"),
|
||||||
this.timespans.map(d => {
|
this.timespans.map(d => {
|
||||||
@ -273,7 +272,7 @@ frappe.Leaderboard = Class.extend({
|
|||||||
|
|
||||||
get_item_html: function (item) {
|
get_item_html: function (item) {
|
||||||
var me = this;
|
var me = this;
|
||||||
const company = me.options.selected_company
|
const company = me.options.selected_company;
|
||||||
const currency = frappe.get_doc(":Company", company).default_currency;
|
const currency = frappe.get_doc(":Company", company).default_currency;
|
||||||
const _selected_filter = me.options.selected_filter
|
const _selected_filter = me.options.selected_filter
|
||||||
.map(i => frappe.model.unscrub(i));
|
.map(i => frappe.model.unscrub(i));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user