[fix] [minor] round off currency values in grid reports

This commit is contained in:
Anand Doshi 2013-08-12 17:32:46 +05:30
parent a7cf1df5a9
commit 2897dfd3aa

View file

@ -334,6 +334,13 @@ wn.views.GridReport = Class.extend({
});
},
round_off_data: function() {
var me = this;
$.each(this.data, function(i, d) {
me.round_item_values(d);
});
},
refresh: function() {
this.waiting.toggle(false);
if(!this.grid_wrapper)
@ -344,6 +351,7 @@ wn.views.GridReport = Class.extend({
this.setup_dataview_columns();
this.apply_link_formatters();
this.prepare_data();
this.round_off_data();
this.prepare_data_view();
// plot might need prepared data
this.wrapper.find(".processing").toggle(true);