2009-02-05 16:40:02 +01:00
|
|
|
%b=h order.name
|
2009-01-29 21:28:22 +01:00
|
|
|
%br/
|
2013-02-10 09:05:20 +01:00
|
|
|
= t('.duration', {starts: format_date(order.starts), ends: format_date(order.ends)})
|
2009-01-06 11:49:19 +01:00
|
|
|
%p
|
2009-01-29 21:28:22 +01:00
|
|
|
%table
|
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.net_amount')
|
2012-11-10 16:44:05 +01:00
|
|
|
%td.numeric= number_to_currency(order.sum(:net))
|
2009-01-29 21:28:22 +01:00
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.gross_amount')
|
2012-11-10 16:44:05 +01:00
|
|
|
%td.numeric= number_to_currency(order.sum(:gross))
|
2009-01-29 21:28:22 +01:00
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.fc_amount')
|
2012-11-10 16:44:05 +01:00
|
|
|
%td.numeric= number_to_currency(order.sum(:fc))
|
2009-01-29 21:28:22 +01:00
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.groups_amount')
|
2012-11-10 16:44:05 +01:00
|
|
|
%td.numeric= number_to_currency(order.sum(:groups))
|
2009-01-29 21:28:22 +01:00
|
|
|
%tr
|
2012-11-10 16:44:05 +01:00
|
|
|
%td
|
2013-02-10 09:05:20 +01:00
|
|
|
= t('.fc_profit')
|
|
|
|
%small= t('.without_extra_charge')
|
2012-11-10 16:44:05 +01:00
|
|
|
%td.numeric= number_to_currency(order.profit(:without_markup => true))
|
2009-01-29 21:28:22 +01:00
|
|
|
%tr
|
2012-11-10 16:44:05 +01:00
|
|
|
%td
|
2013-02-10 09:05:20 +01:00
|
|
|
= t('.fc_profit')
|
|
|
|
%small= t('.with_extra_charge')
|
2013-03-17 15:47:50 +01:00
|
|
|
%td#order_profit.numeric= number_to_currency(order.profit)
|
|
|
|
#summaryChangedWarning.alert(style="display:none;")
|
2013-03-21 22:08:09 +01:00
|
|
|
%strong= t '.changed'
|
2013-03-17 15:47:50 +01:00
|
|
|
%br/
|
2013-03-21 22:08:09 +01:00
|
|
|
= link_to t('.reload'), update_summary_finance_order_path(order), remote: true
|