mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
fix: undo changes to allow negative stock flag
(cherry picked from commit 7bafa11d57)
This commit is contained in:
committed by
mergify-bot
parent
b1efb7f80b
commit
a2a462f2f5
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user