only show receive in finance when access to ordering
This commit is contained in:
parent
7f813f2c0f
commit
3d511ea2fb
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@
|
|||
%td= show_user(order.updated_by)
|
||||
%td
|
||||
- unless order.closed?
|
||||
= link_to t('orders.index.action_receive'), receive_order_path(order), class: 'btn btn-mini'
|
||||
- if current_user.role_orders?
|
||||
= link_to t('orders.index.action_receive'), receive_order_path(order), class: 'btn btn-mini'
|
||||
= link_to t('.clear'), new_finance_order_path(order_id: order.id), class: 'btn btn-mini btn-primary'
|
||||
= link_to t('.close'), close_direct_finance_order_path(order),
|
||||
:confirm => t('.confirm'), :method => :put, class: 'btn btn-mini'
|
||||
|
|
Loading…
Reference in a new issue