fix: undo changes to allow negative stock flag

(cherry picked from commit 7bafa11d57)
This commit is contained in:
Ankush Menat
2021-10-12 20:39:10 +05:30
committed by mergify-bot
parent b1efb7f80b
commit a2a462f2f5

View File

@@ -231,7 +231,8 @@ class update_entries_after(object):
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")