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))
|
2023-07-24 10:50:35 +02:00
|
|
|
- if FoodsoftConfig[:group_order_invoices]&.[](:separate_deposits)
|
2023-09-28 22:42:52 +02:00
|
|
|
%tr
|
|
|
|
%td= t('.gross_amount')
|
|
|
|
%td.numeric= number_to_currency(order.sum(:gross_without_deposit))
|
2023-07-24 10:50:35 +02:00
|
|
|
%tr
|
|
|
|
%td= t('.deposit')
|
|
|
|
%td.numeric= number_to_currency(order.sum(:deposit))
|
|
|
|
%tr
|
2023-09-28 22:42:52 +02:00
|
|
|
%td= t('.net_deposit')
|
|
|
|
%td.numeric= number_to_currency(order.sum(:net_deposit))
|
2023-07-24 10:50:35 +02:00
|
|
|
%tr
|
|
|
|
%td= t('.fc_deposit')
|
|
|
|
%td.numeric= number_to_currency(order.sum(:fc_deposit))
|
2023-09-28 22:42:52 +02:00
|
|
|
- else
|
|
|
|
%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))
|
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
|