only show receive in finance when access to ordering

This commit is contained in:
wvengen 2013-12-18 22:19:36 +01:00
parent 7f813f2c0f
commit 3d511ea2fb

View file

@ -19,6 +19,7 @@
%td= show_user(order.updated_by)
%td
- 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('.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),