foodsoft/app/views/finance/invoices/show.html.haml

35 lines
1,004 B
Text
Raw Normal View History

- title t('.title', number: @invoice.number)
2009-01-18 17:42:51 +01:00
%p
%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
%b= t('simple_form.labels.invoice.delivery') + ':'
= t('.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery])).html_safe
2009-01-18 17:42:51 +01:00
%p
%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
%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
%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
%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
%b= t('simple_form.labels.invoice.deposit') + ':'
2012-04-20 18:33:47 +02:00
= number_to_currency @invoice.deposit
%p
%b= t('simple_form.labels.invoice.deposit_credit') + ':'
2012-04-20 18:33:47 +02:00
= number_to_currency @invoice.deposit_credit
%p
%b= t('simple_form.labels.invoice.note') + ':'
2009-01-18 17:42:51 +01:00
=h @invoice.note
= link_to t('ui.edit'), edit_finance_invoice_path(@invoice)
2009-01-18 17:42:51 +01:00
|
= link_to t('.back'), finance_invoices_path