fixes in stock ledger report

This commit is contained in:
Nabin Hait 2013-02-04 13:57:54 +05:30
parent 87462b68a7
commit cb5a05ea98

View File

@ -208,7 +208,7 @@ erpnext.StockLedger = erpnext.StockGridReport.extend({
} }
} }
if(me.item_code != me.item_code_default && !me.voucher_no) { if(me.item_code && !me.voucher_no) {
var closing = { var closing = {
item_code: "On " + dateutil.str_to_user(this.to_date), item_code: "On " + dateutil.str_to_user(this.to_date),
balance: (out.length ? out[out.length-1].balance : 0), qty: 0, balance: (out.length ? out[out.length-1].balance : 0), qty: 0,