dynamic loading for reports
This commit is contained in:
parent
7a32ec0f4f
commit
e7ccc317de
@ -14,6 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
wn.require("lib/js/wn/views/grid_report.js");
|
||||
wn.require("app/js/account_tree_grid.js");
|
||||
|
||||
wn.pages['financial-analytics'].onload = function(wrapper) {
|
||||
|
@ -25,6 +25,8 @@ wn.pages['general-ledger'].onload = function(wrapper) {
|
||||
|
||||
}
|
||||
|
||||
wn.require("lib/js/wn/views/grid_report.js");
|
||||
|
||||
erpnext.GeneralLedger = wn.views.GridReport.extend({
|
||||
init: function(wrapper) {
|
||||
this._super({
|
||||
|
@ -14,6 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
wn.require("lib/js/wn/views/grid_report.js");
|
||||
wn.require("app/js/account_tree_grid.js");
|
||||
|
||||
wn.pages['trial-balance'].onload = function(wrapper) {
|
||||
|
@ -23,6 +23,7 @@ wn.pages['purchase-analytics'].onload = function(wrapper) {
|
||||
|
||||
new erpnext.PurchaseAnalytics(wrapper);
|
||||
}
|
||||
wn.require("lib/js/wn/views/grid_report.js");
|
||||
|
||||
erpnext.PurchaseAnalytics = wn.views.TreeGridReport.extend({
|
||||
init: function(wrapper) {
|
||||
|
@ -13,9 +13,9 @@
|
||||
}
|
||||
|
||||
.toggle.expand {
|
||||
background: url(images/expand.gif) no-repeat center center;
|
||||
background: url(app/images/expand.gif) no-repeat center center;
|
||||
}
|
||||
|
||||
.toggle.collapse {
|
||||
background: url(images/collapse.gif) no-repeat center center;
|
||||
background: url(app/images/collapse.gif) no-repeat center center;
|
||||
}
|
@ -23,6 +23,8 @@ wn.pages['sales-analytics'].onload = function(wrapper) {
|
||||
new erpnext.SalesAnalytics(wrapper);
|
||||
}
|
||||
|
||||
wn.require("lib/js/wn/views/grid_report.js");
|
||||
|
||||
erpnext.SalesAnalytics = wn.views.TreeGridReport.extend({
|
||||
init: function(wrapper) {
|
||||
this._super({
|
||||
|
@ -26,6 +26,7 @@ wn.pages['stock-ageing'].onload = function(wrapper) {
|
||||
|
||||
}
|
||||
|
||||
wn.require("lib/js/wn/views/grid_report.js");
|
||||
wn.require("app/js/stock_grid_report.js");
|
||||
|
||||
erpnext.StockAgeing = erpnext.StockGridReport.extend({
|
||||
|
@ -24,6 +24,7 @@ wn.pages['stock-analytics'].onload = function(wrapper) {
|
||||
new erpnext.StockAnalytics(wrapper);
|
||||
}
|
||||
|
||||
wn.require("lib/js/wn/views/grid_report.js");
|
||||
wn.require("app/js/stock_grid_report.js");
|
||||
|
||||
erpnext.StockAnalytics = erpnext.StockGridReport.extend({
|
||||
|
@ -24,6 +24,7 @@ wn.pages['stock-ledger'].onload = function(wrapper) {
|
||||
new erpnext.StockLedger(wrapper);
|
||||
}
|
||||
|
||||
wn.require("lib/js/wn/views/grid_report.js");
|
||||
wn.require("app/js/stock_grid_report.js");
|
||||
|
||||
erpnext.StockLedger = erpnext.StockGridReport.extend({
|
||||
|
Loading…
x
Reference in New Issue
Block a user