foodsoft/app/views/finance/balancing/_invoice.html.haml

27 lines
752 B
Text
Raw Permalink Normal View History

- if invoice
%table
%tr
2013-02-10 09:05:20 +01:00
%td= t('.invoice_number')
%td= invoice.number
%tr
2013-02-10 09:05:20 +01:00
%td= t('.invoice_date')
%td= invoice.date
%tr
2013-02-10 09:05:20 +01:00
%td= t('.invoice_amount')
%td.curreny= number_to_currency invoice.amount
%tr
2013-02-10 09:05:20 +01:00
%td= t('.minus_refund_calculated')
%td.curreny= number_to_currency invoice.deposit
%tr
2013-02-10 09:05:20 +01:00
%td= t('.plus_refund_credited')
%td.curreny= number_to_currency invoice.deposit_credit
%tr
2013-02-10 09:05:20 +01:00
%td= t('.refund_adjusted_amount')
%td.curreny= number_to_currency invoice.net_amount
%br/
2013-02-10 09:05:20 +01:00
= link_to t('.edit'), edit_finance_invoice_path(invoice)
- else
2013-06-06 02:42:38 +02:00
= t '.new_body'
2013-02-10 09:05:20 +01:00
= link_to t('.new'), new_finance_invoice_path(:order_id => @order, :supplier_id => @order.supplier)