2013-02-27 12:31:01 +01:00
|
|
|
- title t('.title', number: @invoice.number)
|
2009-01-18 17:42:51 +01:00
|
|
|
|
|
|
|
%p
|
2013-02-27 12:31:01 +01:00
|
|
|
%b= t 'simple_form.labels.invoice.supplier'
|
2012-04-20 18:33:47 +02:00
|
|
|
= @invoice.supplier.name
|
2009-01-18 17:42:51 +01:00
|
|
|
- if @invoice.delivery
|
|
|
|
%p
|
2013-02-27 12:31:01 +01:00
|
|
|
%b= t('simple_form.labels.invoice.delivery') + ':'
|
|
|
|
= t '.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery])
|
2009-01-18 17:42:51 +01:00
|
|
|
%p
|
2013-02-27 12:31:01 +01:00
|
|
|
%b= t('simple_form.labels.invoice.number') + ':'
|
2012-04-20 18:33:47 +02:00
|
|
|
= @invoice.number
|
2009-01-18 17:42:51 +01:00
|
|
|
%p
|
2013-02-27 12:31:01 +01:00
|
|
|
%b= t('simple_form.labels.invoice.date') + ':'
|
2012-04-20 18:33:47 +02:00
|
|
|
= @invoice.date
|
2009-01-18 17:42:51 +01:00
|
|
|
%p
|
2013-02-27 12:31:01 +01:00
|
|
|
%b= t('simple_form.labels.invoice.paid_on') + ':'
|
2012-04-20 18:33:47 +02:00
|
|
|
= @invoice.paid_on
|
2009-01-18 17:42:51 +01:00
|
|
|
%p
|
2013-02-27 12:31:01 +01:00
|
|
|
%b= t('simple_form.labels.invoice.amount') + ':'
|
2012-04-20 18:33:47 +02:00
|
|
|
= number_to_currency @invoice.amount
|
2009-01-18 17:42:51 +01:00
|
|
|
%p
|
2013-02-27 12:31:01 +01:00
|
|
|
%b= t('simple_form.labels.invoice.deposit') + ':'
|
2012-04-20 18:33:47 +02:00
|
|
|
= number_to_currency @invoice.deposit
|
2009-02-11 18:09:04 +01:00
|
|
|
%p
|
2013-02-27 12:31:01 +01:00
|
|
|
%b= t('simple_form.labels.invoice.deposit_credit') + ':'
|
2012-04-20 18:33:47 +02:00
|
|
|
= number_to_currency @invoice.deposit_credit
|
2009-02-11 18:09:04 +01:00
|
|
|
%p
|
2013-02-27 12:31:01 +01:00
|
|
|
%b= t('simple_form.labels.invoice.note') + ':'
|
2009-01-18 17:42:51 +01:00
|
|
|
=h @invoice.note
|
|
|
|
|
2013-02-27 12:31:01 +01:00
|
|
|
= link_to t('ui.edit'), edit_finance_invoice_path(@invoice)
|
2009-01-18 17:42:51 +01:00
|
|
|
|
|
2013-02-27 12:31:01 +01:00
|
|
|
= link_to t('.back'), finance_invoices_path
|