Skip to content

Commit

Permalink
fix: undo changes to allow negative stock flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush authored Oct 12, 2021
1 parent c7fc609 commit 7bafa11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ def __init__(self, args, allow_zero_rate=False, allow_negative_stock=None, via_l
self.verbose = verbose
self.allow_zero_rate = allow_zero_rate
self.via_landed_cost_voucher = via_landed_cost_voucher
self.allow_negative_stock = True
self.allow_negative_stock = allow_negative_stock \
or cint(frappe.db.get_single_value("Stock Settings", "allow_negative_stock"))

self.args = frappe._dict(args)
self.item_code = args.get("item_code")
Expand Down

0 comments on commit 7bafa11

Please sign in to comment.