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,6 +19,7 @@
|
||||||
%td= show_user(order.updated_by)
|
%td= show_user(order.updated_by)
|
||||||
%td
|
%td
|
||||||
- unless order.closed?
|
- unless order.closed?
|
||||||
|
- if current_user.role_orders?
|
||||||
= link_to t('orders.index.action_receive'), receive_order_path(order), class: 'btn btn-mini'
|
= 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('.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),
|
= link_to t('.close'), close_direct_finance_order_path(order),
|
||||||
|
|
Loading…
Reference in a new issue