7af796c09c
Conflicts: app/controllers/admin/ordergroups_controller.rb app/controllers/finance/balancing_controller.rb app/controllers/suppliers_controller.rb app/views/articles/_article.html.haml app/views/finance/balancing/_summary.haml app/views/finance/balancing/new.html.haml app/views/group_orders/_form.html.haml app/views/home/_apple_bar.html.haml app/views/suppliers/index.haml
31 lines
975 B
Text
31 lines
975 B
Text
%b=h order.name
|
|
%br/
|
|
= t('.duration', {starts: format_date(order.starts), ends: format_date(order.ends)})
|
|
%p
|
|
%table
|
|
%tr
|
|
%td= t('.net_amount')
|
|
%td.numeric= number_to_currency(order.sum(:net))
|
|
%tr
|
|
%td= t('.gross_amount')
|
|
%td.numeric= number_to_currency(order.sum(:gross))
|
|
%tr
|
|
%td= t('.fc_amount')
|
|
%td.numeric= number_to_currency(order.sum(:fc))
|
|
%tr
|
|
%td= t('.groups_amount')
|
|
%td.numeric= number_to_currency(order.sum(:groups))
|
|
%tr
|
|
%td
|
|
= t('.fc_profit')
|
|
%small= t('.without_extra_charge')
|
|
%td.numeric= number_to_currency(order.profit(:without_markup => true))
|
|
%tr
|
|
%td
|
|
= t('.fc_profit')
|
|
%small= t('.with_extra_charge')
|
|
%td#order_profit.numeric= number_to_currency(order.profit)
|
|
#summaryChangedWarning.alert(style="display:none;")
|
|
%strong= t '.changed'
|
|
%br/
|
|
= link_to t('.reload'), update_summary_finance_order_path(order), remote: true
|