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

41 lines
1.2 KiB
Plaintext
Raw Normal View History

- title t('.title', number: @invoice.number)
2009-01-18 17:42:51 +01:00
%p
2013-06-21 14:24:05 +02:00
%b= t('simple_form.labels.invoice.supplier') + ':'
2012-04-20 18:33:47 +02:00
= @invoice.supplier.name
2013-06-21 14:24:05 +02:00
2009-01-18 17:42:51 +01:00
- if @invoice.delivery
%p
%b= t('simple_form.labels.invoice.delivery') + ':'
2013-06-21 14:24:05 +02:00
= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_delivery'), [@invoice.supplier,@invoice.delivery])).html_safe
- if @invoice.order
%p
%b= t('simple_form.labels.invoice.order') + ':'
= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_order'), @invoice.order)).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