[grid report] round currency values

This commit is contained in:
Anand Doshi 2013-06-26 12:05:37 +05:30
parent 568910ef7a
commit b802050cd4
2 changed files with 5 additions and 1 deletions

View File

@ -162,6 +162,8 @@ erpnext.StockAnalytics = erpnext.StockGridReport.extend({
} else {
break;
}
me.round_item_values(item);
}
}
},

View File

@ -119,7 +119,7 @@ erpnext.StockBalance = erpnext.StockAnalytics.extend({
var qty_diff = sl.qty;
var value_diff = me.get_value_diff(wh, sl, is_fifo);
if(sl_posting_date < from_date) {
item.opening_qty += qty_diff;
item.opening_value += value_diff;
@ -146,6 +146,8 @@ erpnext.StockBalance = erpnext.StockAnalytics.extend({
} else {
break;
}
me.round_item_values(item);
}
}