mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-03 06:03:51 +08:00
Merge pull request #7722 from artoscinote/ma_SCI_10893
Fix import of stock units [SCI-10893]
This commit is contained in:
commit
a9980c04c7
1 changed files with 8 additions and 1 deletions
|
@ -227,7 +227,14 @@ module RepositoryImportParser
|
||||||
if repository_cell.present?
|
if repository_cell.present?
|
||||||
case cell_value
|
case cell_value
|
||||||
when RepositoryStockValue
|
when RepositoryStockValue
|
||||||
repository_cell.value.update_data!(cell_value, @user, preview: @preview)
|
repository_cell.value.update_data!(
|
||||||
|
{
|
||||||
|
amount: cell_value.amount,
|
||||||
|
unit_item_id: cell_value.repository_stock_unit_item_id
|
||||||
|
},
|
||||||
|
@user,
|
||||||
|
preview: @preview
|
||||||
|
)
|
||||||
when RepositoryListValue
|
when RepositoryListValue
|
||||||
repository_list_item_id = cell_value[:repository_list_item_id]
|
repository_list_item_id = cell_value[:repository_list_item_id]
|
||||||
repository_cell.value.update_data!(repository_list_item_id, @user, preview: @preview)
|
repository_cell.value.update_data!(repository_list_item_id, @user, preview: @preview)
|
||||||
|
|
Loading…
Reference in a new issue