mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
remove cancelled entries from grid report when fetching data based on modified
This commit is contained in:
@@ -71,9 +71,11 @@ erpnext.FinancialAnalytics = erpnext.AccountTreeGrid.extend({
|
||||
setup_filters: function() {
|
||||
var me = this;
|
||||
this._super();
|
||||
this.filter_inputs.pl_or_bs.change(function() {
|
||||
me.filter_inputs.refresh.click();
|
||||
}).add_options($.map(wn.report_dump.data["Cost Center"], function(v) {return v.name;}));
|
||||
this.trigger_refresh_on_change(["pl_or_bs"]);
|
||||
|
||||
this.filter_inputs.pl_or_bs
|
||||
.add_options($.map(wn.report_dump.data["Cost Center"], function(v) {return v.name;}));
|
||||
|
||||
this.setup_plot_check();
|
||||
},
|
||||
init_filter_values: function() {
|
||||
|
||||
@@ -108,7 +108,7 @@ erpnext.GeneralLedger = wn.views.GridReport.extend({
|
||||
// filter accounts options by company
|
||||
this.filter_inputs.company.change(function() {
|
||||
me.setup_account_filter(this);
|
||||
me.filter_inputs.refresh.click();
|
||||
me.set_route()
|
||||
});
|
||||
|
||||
this.filter_inputs.account.change(function() {
|
||||
|
||||
Reference in New Issue
Block a user