Add a button to send the order to the supplier
This commit is contained in:
parent
b4ce8c31cc
commit
f27bbc2ffa
7 changed files with 65 additions and 0 deletions
|
|
@ -87,6 +87,7 @@
|
|||
= link_to t('.stock_order'), new_group_order_path(:order_id => @order.id, :stock_order => true), class: 'btn'
|
||||
= link_to t('ui.edit'), edit_order_path(@order), class: 'btn'
|
||||
- elsif not @order.closed? and not @order.stockit?
|
||||
= link_to t('.send_to_supplier'), send_result_to_supplier_order_path(@order), method: :post, class: 'btn btn-primary'
|
||||
= receive_button @order
|
||||
- unless @order.closed?
|
||||
= link_to t('ui.delete'), @order, data: {confirm: t('.confirm_delete')}, method: :delete,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue