Add StockChanges index
This commit is contained in:
parent
d397132f7b
commit
ef62a18ac9
9 changed files with 59 additions and 1 deletions
13
app/helpers/stock_changes_helper.rb
Normal file
13
app/helpers/stock_changes_helper.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
module StockChangesHelper
|
||||
|
||||
def link_to_stock_change_reason(stock_change)
|
||||
if stock_change.delivery_id
|
||||
t '.delivery'
|
||||
elsif stock_change.order_id
|
||||
t '.order'
|
||||
elsif stock_change.stock_taking_id
|
||||
t '.stock_taking'
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue