hide receive screen for stock orders
This commit is contained in:
parent
aa6041d337
commit
41ea9ed66e
3 changed files with 8 additions and 4 deletions
|
|
@ -20,7 +20,10 @@
|
|||
%td
|
||||
- unless order.closed?
|
||||
- if current_user.role_orders?
|
||||
= link_to t('orders.index.action_receive'), receive_order_path(order), class: 'btn btn-mini'
|
||||
- unless order.stockit?
|
||||
= link_to t('orders.index.action_receive'), receive_order_path(order), class: 'btn btn-mini'
|
||||
- else
|
||||
= link_to t('orders.index.action_receive'), '#', class: 'btn btn-mini disabled'
|
||||
= 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…
Add table
Add a link
Reference in a new issue