mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
229a27750f
* Implement stock consumption via the API [SCI-6642] * Remove unnecessary attribute from InventoryItemSerializer [SCI-6642] * Amend permission check, add nested transaction support to consume_stock method [SCI-6642]
10 lines
230 B
Ruby
10 lines
230 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :repository_stock_unit_item do
|
|
sequence(:data) { |n| "u-#{n}" }
|
|
repository_column
|
|
created_by { create :user }
|
|
last_modified_by { created_by }
|
|
end
|
|
end
|