fix(stock settings): Allowed any number in stock frozen upto days field (#41736)
(cherry picked from commit 740c495014)
Co-authored-by: Nabin Hait <nabinhait@gmail.com>
This commit is contained in:
@@ -84,14 +84,6 @@ class StockSettings(Document):
|
||||
make_mandatory=0,
|
||||
)
|
||||
|
||||
stock_frozen_limit = 356
|
||||
submitted_stock_frozen = self.stock_frozen_upto_days or 0
|
||||
if submitted_stock_frozen > stock_frozen_limit:
|
||||
self.stock_frozen_upto_days = stock_frozen_limit
|
||||
frappe.msgprint(
|
||||
_("`Freeze Stocks Older Than` should be smaller than %d days.") % stock_frozen_limit
|
||||
)
|
||||
|
||||
# show/hide barcode field
|
||||
for name in ["barcode", "barcodes", "scan_barcode"]:
|
||||
frappe.make_property_setter(
|
||||
|
||||
Reference in New Issue
Block a user