Maintain negative stock balance if balance qty is negative

This commit is contained in:
Nabin Hait
2014-10-09 19:25:03 +05:30
parent b7e5ad0a31
commit 4d74216147
8 changed files with 118 additions and 50 deletions

View File

@@ -126,6 +126,7 @@ erpnext.StockBalance = erpnext.StockAnalytics.extend({
&& this.stock_entry_map[sl.voucher_no].purpose=="Material Transfer";
if(!ignore_inflow_outflow) {
if(qty_diff < 0) {
item.outflow_qty += Math.abs(qty_diff);
} else {