mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 07:21:03 +08:00
Fix issue showing item card reminder when threshold equals stock value [SCI-9828] (#6753)
This commit is contained in:
parent
b7177a8592
commit
1d52e20f4e
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ module RepositoryDatatable
|
|||
!scope[:repository].is_a?(RepositorySnapshot) &&
|
||||
value_object.data.present? &&
|
||||
value_object.low_stock_threshold.present?
|
||||
data[:reminder] = value_object.low_stock_threshold > value_object.data
|
||||
data[:reminder] = value_object.low_stock_threshold >= value_object.data
|
||||
if data[:reminder] && value_object.data&.positive?
|
||||
data[:reminder_text] =
|
||||
I18n.t('repositories.item_card.reminders.stock_low', stock_formated: value_object.formatted)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue