Stock Ageing & release of Analytics

This commit is contained in:
Rushabh Mehta
2012-09-21 19:46:24 +05:30
parent f200c5296d
commit 09d84b6575
22 changed files with 869 additions and 176 deletions

View File

@@ -11,14 +11,14 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
erpnext.AccountTreeGrid = wn.views.GridReportWithPlot.extend({
erpnext.AccountTreeGrid = wn.views.TreeGridReport.extend({
init: function(wrapper, title) {
this._super({
title: title,
page: wrapper,
parent: $(wrapper).find('.layout-main'),
appframe: wrapper.appframe,
doctypes: ["Company", "Fiscal Year", "Account", "GL Entry"],
doctypes: ["Company", "Fiscal Year", "Account", "GL Entry", "Cost Center"],
tree_grid: {
show: true,
parent_field: "parent_account",
@@ -111,6 +111,9 @@ erpnext.AccountTreeGrid = wn.views.GridReportWithPlot.extend({
this.prepare_balances();
},
init_account: function(d) {
this.reset_item_values(d);
},
prepare_balances: function() {
var gl = wn.report_dump.data['GL Entry'];