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

41 lines
1.2 KiB
Text
Raw Normal View History

- title t('.title', number: @invoice.number)
2009-01-18 17:42:51 +01:00
%p
2013-10-09 23:37:08 +02:00
%b= heading_helper(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
2013-10-09 23:37:08 +02:00
%b= heading_helper(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
2013-10-09 23:37:08 +02:00
%b= heading_helper(Invoice, :order) + ':'
2013-06-21 14:24:05 +02:00
= 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
2013-10-09 23:37:08 +02:00
%b= heading_helper(Invoice, :number) + ':'
2012-04-20 18:33:47 +02:00
= @invoice.number
2009-01-18 17:42:51 +01:00
%p
2013-10-09 23:37:08 +02:00
%b= heading_helper(Invoice, :date) + ':'
2012-04-20 18:33:47 +02:00
= @invoice.date
2009-01-18 17:42:51 +01:00
%p
2013-10-09 23:37:08 +02:00
%b= heading_helper(Invoice, :paid_on) + ':'
2012-04-20 18:33:47 +02:00
= @invoice.paid_on
2009-01-18 17:42:51 +01:00
%p
2013-10-09 23:37:08 +02:00
%b= heading_helper(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-10-09 23:37:08 +02:00
%b= heading_helper(Invoice, :deposit) + ':'
2012-04-20 18:33:47 +02:00
= number_to_currency @invoice.deposit
%p
2013-10-09 23:37:08 +02:00
%b= heading_helper(Invoice, :deposit_credit) + ':'
2012-04-20 18:33:47 +02:00
= number_to_currency @invoice.deposit_credit
%p
2013-10-09 23:37:08 +02:00
%b= heading_helper(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