mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-07 05:03:26 +08:00
Hide stock column at importing items after stock is disabled [SCI-6801] (#4093)
* Add stock column check at importing inventory items [SCI-6801] * Fix hound message [SCI-6801]
This commit is contained in:
parent
087213dbc7
commit
a23eea7523
1 changed files with 5 additions and 1 deletions
|
@ -87,7 +87,11 @@ class RepositoryColumn < ApplicationRecord
|
|||
end
|
||||
|
||||
def importable?
|
||||
Extends::REPOSITORY_IMPORTABLE_TYPES.include?(data_type.to_sym)
|
||||
if data_type == 'RepositoryStockValue'
|
||||
RepositoryBase.stock_management_enabled?
|
||||
else
|
||||
Extends::REPOSITORY_IMPORTABLE_TYPES.include?(data_type.to_sym)
|
||||
end
|
||||
end
|
||||
|
||||
def deep_dup
|
||||
|
|
Loading…
Reference in a new issue