foodsoft/app/views/finance/balancing/_summary.haml

42 lines
1.3 KiB
Text
Raw Normal View History

%b=h order.name
%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
%table
%tr
2013-02-10 09:05:20 +01:00
%td= t('.net_amount')
%td.numeric= number_to_currency(order.sum(:net))
%tr
2013-02-10 09:05:20 +01:00
%td= t('.gross_amount')
%td.numeric= number_to_currency(order.sum(:gross))
%tr
2013-02-10 09:05:20 +01:00
%td= t('.fc_amount')
%td.numeric= number_to_currency(order.sum(:fc))
2023-08-11 15:01:22 +02:00
- if FoodsoftConfig[:group_order_invoices]&.[](:separate_deposits)
%tr
%td= t('.deposit')
%td.numeric= number_to_currency(order.sum(:deposit))
%tr
%td= t('.gross_deposit')
%td.numeric= number_to_currency(order.sum(:gross_deposit))
%tr
%td= t('.fc_deposit')
%td.numeric= number_to_currency(order.sum(:fc_deposit))
%tr
2013-02-10 09:05:20 +01:00
%td= t('.groups_amount')
%td.numeric= number_to_currency(order.sum(:groups))
%tr
%td
2013-02-10 09:05:20 +01:00
= t('.fc_profit')
%small= t('.without_extra_charge')
%td.numeric= number_to_currency(order.profit(:without_markup => true))
%tr
%td
2013-02-10 09:05:20 +01:00
= 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