mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
Maintain negative stock balance if balance qty is negative
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user