diff --git a/accounts/page/financial_analytics/financial_analytics.js b/accounts/page/financial_analytics/financial_analytics.js index 264ced35bf..06c8a29fab 100644 --- a/accounts/page/financial_analytics/financial_analytics.js +++ b/accounts/page/financial_analytics/financial_analytics.js @@ -23,6 +23,8 @@ wn.pages['financial-analytics'].onload = function(wrapper) { single_column: true }); erpnext.trial_balance = new erpnext.FinancialAnalytics(wrapper, 'Financial Analytics'); + + wrapper.appframe.add_module_tab("Accounts"); } erpnext.FinancialAnalytics = erpnext.AccountTreeGrid.extend({ diff --git a/accounts/page/general_ledger/general_ledger.js b/accounts/page/general_ledger/general_ledger.js index c411e71c57..d163021862 100644 --- a/accounts/page/general_ledger/general_ledger.js +++ b/accounts/page/general_ledger/general_ledger.js @@ -22,6 +22,8 @@ wn.pages['general-ledger'].onload = function(wrapper) { }); erpnext.general_ledger = new erpnext.GeneralLedger(wrapper); + + wrapper.appframe.add_module_tab("Accounts"); } diff --git a/accounts/page/trial_balance/trial_balance.js b/accounts/page/trial_balance/trial_balance.js index 698cf511c3..87f94ca95a 100644 --- a/accounts/page/trial_balance/trial_balance.js +++ b/accounts/page/trial_balance/trial_balance.js @@ -55,4 +55,6 @@ wn.pages['trial-balance'].onload = function(wrapper) { }, }) erpnext.trial_balance = new TrialBalance(wrapper, 'Trial Balance'); + + wrapper.appframe.add_module_tab("Accounts"); } \ No newline at end of file diff --git a/buying/doctype/purchase_order/purchase_order.js b/buying/doctype/purchase_order/purchase_order.js index d0d878df08..584648d31e 100644 --- a/buying/doctype/purchase_order/purchase_order.js +++ b/buying/doctype/purchase_order/purchase_order.js @@ -139,7 +139,7 @@ cur_frm.cscript['Make Purchase Receipt'] = function() { //========================== Make Purchase Invoice ===================================================== cur_frm.cscript['Make Purchase Invoice'] = function() { n = createLocal('Purchase Invoice'); - $c('dt_map', args={ + $c('dt_map', { 'docs':compress_doclist([locals['Purchase Invoice'][n]]), 'from_doctype':cur_frm.doc.doctype, 'to_doctype':'Purchase Invoice', diff --git a/buying/page/purchase_analytics/purchase_analytics.js b/buying/page/purchase_analytics/purchase_analytics.js index 23db139c4d..1e401c3c62 100644 --- a/buying/page/purchase_analytics/purchase_analytics.js +++ b/buying/page/purchase_analytics/purchase_analytics.js @@ -22,6 +22,8 @@ wn.pages['purchase-analytics'].onload = function(wrapper) { }); new erpnext.PurchaseAnalytics(wrapper); + + wrapper.appframe.add_module_tab("Buying"); } erpnext.PurchaseAnalytics = wn.views.TreeGridReport.extend({ diff --git a/selling/page/sales_analytics/sales_analytics.js b/selling/page/sales_analytics/sales_analytics.js index b87ead51f0..d454d67c3d 100644 --- a/selling/page/sales_analytics/sales_analytics.js +++ b/selling/page/sales_analytics/sales_analytics.js @@ -21,6 +21,8 @@ wn.pages['sales-analytics'].onload = function(wrapper) { single_column: true }); new erpnext.SalesAnalytics(wrapper); + + wrapper.appframe.add_module_tab("Selling"); } erpnext.SalesAnalytics = wn.views.TreeGridReport.extend({ diff --git a/stock/page/stock_ageing/stock_ageing.js b/stock/page/stock_ageing/stock_ageing.js index 7e9b84fb33..82ab0bc024 100644 --- a/stock/page/stock_ageing/stock_ageing.js +++ b/stock/page/stock_ageing/stock_ageing.js @@ -24,6 +24,7 @@ wn.pages['stock-ageing'].onload = function(wrapper) { new erpnext.StockAgeing(wrapper); + wrapper.appframe.add_module_tab("Stock"); } wn.require("app/js/stock_grid_report.js"); diff --git a/stock/page/stock_analytics/stock_analytics.js b/stock/page/stock_analytics/stock_analytics.js index 9b0309f641..f0d2a2b621 100644 --- a/stock/page/stock_analytics/stock_analytics.js +++ b/stock/page/stock_analytics/stock_analytics.js @@ -22,6 +22,8 @@ wn.pages['stock-analytics'].onload = function(wrapper) { }); new erpnext.StockAnalytics(wrapper); + + wrapper.appframe.add_module_tab("Stock"); } wn.require("app/js/stock_grid_report.js"); diff --git a/stock/page/stock_ledger/stock_ledger.js b/stock/page/stock_ledger/stock_ledger.js index 2b8fa9e0af..f7427ab2f2 100644 --- a/stock/page/stock_ledger/stock_ledger.js +++ b/stock/page/stock_ledger/stock_ledger.js @@ -22,6 +22,8 @@ wn.pages['stock-ledger'].onload = function(wrapper) { }); new erpnext.StockLedger(wrapper); + + wrapper.appframe.add_module_tab("Stock"); } wn.require("app/js/stock_grid_report.js");