mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 18:54:55 +00:00
[fix] [minor] stock related report fixed
This commit is contained in:
@@ -112,9 +112,11 @@ erpnext.StockGridReport = wn.views.TreeGridReport.extend({
|
||||
get_serialized_buying_rates: function() {
|
||||
var serialized_buying_rates = {};
|
||||
|
||||
$.each(wn.report_dump.data["Serial No"], function(i, sn) {
|
||||
serialized_buying_rates[sn.name.toLowerCase()] = flt(sn.incoming_rate);
|
||||
});
|
||||
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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user