2017-03-04 14:15:18 +01:00
|
|
|
= form_tag close_finance_order_path(@order) do
|
|
|
|
%p!= t('.first_paragraph')
|
|
|
|
- if FinancialTransactionType.has_multiple_types
|
|
|
|
%p
|
|
|
|
%b= heading_helper FinancialTransaction, :financial_transaction_type
|
2023-11-03 16:37:43 +01:00
|
|
|
= select_tag :type, options_for_select(FinancialTransactionType.order(:name).map { |t| [ t.name, t.id ] }, selected: FoodsoftConfig[:group_order_invoices]&.[](:payment_method))
|
2017-03-04 14:15:18 +01:00
|
|
|
%table.table.table-striped{:style => "width:35em"}
|
|
|
|
- for group_order in @order.group_orders
|
|
|
|
%tr{:class => cycle('even', 'odd')}
|
|
|
|
%td= group_order.ordergroup_name
|
2020-03-19 00:22:20 +01:00
|
|
|
%td.numeric= number_to_currency(group_order.total)
|
2017-03-04 14:15:18 +01:00
|
|
|
.form-actions
|
|
|
|
= submit_tag t('.clear'), class: 'btn btn-primary'
|
|
|
|
= link_to t('.or_cancel'), new_finance_order_path(order_id: @order.id)
|