fix in stock balance report

This commit is contained in:
Anand Doshi 2012-12-31 12:43:36 +05:30
parent a6405da823
commit 025d741ecf

View File

@ -110,8 +110,8 @@ erpnext.StockBalance = erpnext.StockAnalytics.extend({
item.opening += diff;
} else if(posting_datetime <= to_date) {
var ignore_inflow_outflow = this.is_default("warehouse")
&& item.voucher_type=="Stock Entry"
&& this.stock_entry_map[item.voucher_no].purpose=="Material Transfer";
&& sl.voucher_type=="Stock Entry"
&& this.stock_entry_map[sl.voucher_no].purpose=="Material Transfer";
if(!ignore_inflow_outflow) {
if(diff < 0) {