mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 13:28:53 +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,8 +87,12 @@ class RepositoryColumn < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def importable?
|
def importable?
|
||||||
|
if data_type == 'RepositoryStockValue'
|
||||||
|
RepositoryBase.stock_management_enabled?
|
||||||
|
else
|
||||||
Extends::REPOSITORY_IMPORTABLE_TYPES.include?(data_type.to_sym)
|
Extends::REPOSITORY_IMPORTABLE_TYPES.include?(data_type.to_sym)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def deep_dup
|
def deep_dup
|
||||||
new_column = super
|
new_column = super
|
||||||
|
|
Loading…
Add table
Reference in a new issue