[fix] [minor] stock related report fixed

This commit is contained in:
Akhilesh Darjee 2013-11-18 11:21:04 +05:30
parent d42c3e0f48
commit 0b3a8477b0

View File

@ -112,9 +112,11 @@ erpnext.StockGridReport = wn.views.TreeGridReport.extend({
get_serialized_buying_rates: function() {
var serialized_buying_rates = {};
if (wn.report_dump.data["Serial No"]) {
$.each(wn.report_dump.data["Serial No"], function(i, sn) {
serialized_buying_rates[sn.name.toLowerCase()] = flt(sn.incoming_rate);
});
}
return serialized_buying_rates;
},