fix: undo changes to allow negative stock flag

This commit is contained in:
Ankush Menat 2021-10-12 20:39:10 +05:30 committed by GitHub
parent c7fc609236
commit 7bafa11d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,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")