mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-08 00:23:01 +08:00
Fix removing stock reminder threshold [SCI-6724] (#4010)
This commit is contained in:
parent
ee26204af2
commit
04ab92b8e2
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class RepositoryStockValue < ApplicationRecord
|
|||
end
|
||||
|
||||
def update_data!(new_data, user)
|
||||
self.low_stock_threshold = new_data[:low_stock_threshold] if new_data[:low_stock_threshold].present?
|
||||
self.low_stock_threshold = new_data[:low_stock_threshold].presence if new_data[:low_stock_threshold]
|
||||
self.repository_stock_unit_item = repository_cell
|
||||
.repository_column
|
||||
.repository_stock_unit_items
|
||||
|
|
Loading…
Reference in a new issue