[minor] grid report loading
This commit is contained in:
parent
a6c361c00e
commit
8c0f05fbae
@ -1,8 +1,6 @@
|
||||
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
frappe.require("assets/erpnext/js/account_tree_grid.js");
|
||||
|
||||
frappe.pages['financial-analytics'].on_page_load = function(wrapper) {
|
||||
frappe.ui.make_app_page({
|
||||
parent: wrapper,
|
||||
@ -10,9 +8,11 @@ frappe.pages['financial-analytics'].on_page_load = function(wrapper) {
|
||||
single_column: true
|
||||
});
|
||||
erpnext.financial_analytics = new erpnext.FinancialAnalytics(wrapper, 'Financial Analytics');
|
||||
frappe.add_breadcrumbs("Accounts")
|
||||
frappe.add_breadcrumbs("Accounts");
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
frappe.require("assets/erpnext/js/account_tree_grid.js");
|
||||
|
||||
erpnext.FinancialAnalytics = erpnext.AccountTreeGrid.extend({
|
||||
filters: [
|
||||
|
@ -11,10 +11,11 @@ frappe.pages['purchase-analytics'].on_page_load = function(wrapper) {
|
||||
new erpnext.PurchaseAnalytics(wrapper);
|
||||
|
||||
|
||||
frappe.add_breadcrumbs("Buying")
|
||||
|
||||
frappe.add_breadcrumbs("Buying");
|
||||
}
|
||||
|
||||
frappe.assets.views["Report"]();
|
||||
|
||||
erpnext.PurchaseAnalytics = frappe.views.TreeGridReport.extend({
|
||||
init: function(wrapper) {
|
||||
this._super({
|
||||
|
@ -14,6 +14,8 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
frappe.assets.views["Report"]();
|
||||
|
||||
erpnext.AccountTreeGrid = frappe.views.TreeGridReport.extend({
|
||||
init: function(wrapper, title) {
|
||||
this._super({
|
||||
|
@ -1,6 +1,8 @@
|
||||
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
frappe.assets.views["Report"]();
|
||||
|
||||
erpnext.StockGridReport = frappe.views.TreeGridReport.extend({
|
||||
get_item_warehouse: function(warehouse, item) {
|
||||
if(!this.item_warehouse[item]) this.item_warehouse[item] = {};
|
||||
|
@ -12,7 +12,9 @@ frappe.pages['sales-analytics'].on_page_load = function(wrapper) {
|
||||
|
||||
frappe.add_breadcrumbs("Selling")
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
frappe.assets.views["Report"]();
|
||||
|
||||
erpnext.SalesAnalytics = frappe.views.TreeGridReport.extend({
|
||||
init: function(wrapper) {
|
||||
|
@ -2,7 +2,7 @@
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
|
||||
frappe.pages['stock-analytics'].on_page_load = function(wrapper) {
|
||||
frappe.pages['stock-analytics'].on_page_load = function(wrapper) {
|
||||
frappe.ui.make_app_page({
|
||||
parent: wrapper,
|
||||
title: __('Stock Analytics'),
|
||||
@ -13,7 +13,8 @@ frappe.pages['stock-analytics'].on_page_load = function(wrapper) {
|
||||
|
||||
|
||||
frappe.add_breadcrumbs("Stock")
|
||||
|
||||
}
|
||||
|
||||
frappe.require("assets/erpnext/js/stock_analytics.js");
|
||||
};
|
||||
|
||||
frappe.assets.views["Report"]();
|
||||
frappe.require("assets/erpnext/js/stock_analytics.js");
|
||||
|
@ -10,7 +10,7 @@ frappe.pages['stock-ledger'].on_page_load = function(wrapper) {
|
||||
|
||||
new erpnext.StockLedger(wrapper);
|
||||
frappe.add_breadcrumbs("Stock")
|
||||
}
|
||||
};
|
||||
|
||||
frappe.require("assets/erpnext/js/stock_grid_report.js");
|
||||
|
||||
|
@ -15,6 +15,8 @@ frappe.pages['support-analytics'].on_page_load = function(wrapper) {
|
||||
|
||||
}
|
||||
|
||||
frappe.assets.views["Report"]();
|
||||
|
||||
erpnext.SupportAnalytics = frappe.views.GridReportWithPlot.extend({
|
||||
init: function(wrapper) {
|
||||
this._super({
|
||||
|
Loading…
Reference in New Issue
Block a user