|
|
|
|
@ -37,14 +37,6 @@ class Form::Sales::Questions::OwningOrganisationId < ::Form::Question
|
|
|
|
|
hsh |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
user_answer_options = if user.support? |
|
|
|
|
Organisation.where(holds_own_stock: true) |
|
|
|
|
else |
|
|
|
|
user.organisation.stock_owners + user.organisation.absorbed_organisations.where(holds_own_stock: true) |
|
|
|
|
end.pluck(:id, :name).to_h |
|
|
|
|
|
|
|
|
|
answer_opts.merge(user_answer_options) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def displayed_answer_options(log, user = nil) |
|
|
|
|
|