mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 14:54:38 +08:00
Add reminder to stock column when value is negative [SCI-9564] (#6503)
This commit is contained in:
parent
f71cc4755c
commit
db48eadd6a
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module RepositoryDatatable
|
|||
end
|
||||
end
|
||||
|
||||
if data[:stock_amount].zero?
|
||||
if data[:stock_amount] <= 0
|
||||
data[:reminder] = true
|
||||
data[:reminder_text] = I18n.t('repositories.item_card.reminders.stock_empty')
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue