2009-01-29 21:28:22 +01:00
|
|
|
- if invoice
|
|
|
|
%table
|
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.invoice_number')
|
2009-01-29 21:28:22 +01:00
|
|
|
%td= invoice.number
|
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.invoice_date')
|
2009-01-29 21:28:22 +01:00
|
|
|
%td= invoice.date
|
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.invoice_amount')
|
2009-01-29 21:28:22 +01:00
|
|
|
%td.curreny= number_to_currency invoice.amount
|
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.minus_refund_calculated')
|
2009-01-29 21:28:22 +01:00
|
|
|
%td.curreny= number_to_currency invoice.deposit
|
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.plus_refund_credited')
|
2009-01-29 21:28:22 +01:00
|
|
|
%td.curreny= number_to_currency invoice.deposit_credit
|
|
|
|
%tr
|
2013-02-10 09:05:20 +01:00
|
|
|
%td= t('.refund_adjusted_amount')
|
2009-01-29 21:28:22 +01:00
|
|
|
%td.curreny= number_to_currency invoice.net_amount
|
2009-08-04 13:25:59 +02:00
|
|
|
%br/
|
2013-02-10 09:05:20 +01:00
|
|
|
= link_to t('.edit'), edit_finance_invoice_path(invoice)
|
2009-01-29 21:28:22 +01:00
|
|
|
|
|
|
|
- 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)
|