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

41 lines
1.2 KiB
Plaintext

- title t('.title', number: @invoice.number)
%p
%b= t('simple_form.labels.invoice.supplier') + ':'
= @invoice.supplier.name
- if @invoice.delivery
%p
%b= t('simple_form.labels.invoice.delivery') + ':'
= 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
%p
%b= t('simple_form.labels.invoice.number') + ':'
= @invoice.number
%p
%b= t('simple_form.labels.invoice.date') + ':'
= @invoice.date
%p
%b= t('simple_form.labels.invoice.paid_on') + ':'
= @invoice.paid_on
%p
%b= t('simple_form.labels.invoice.amount') + ':'
= number_to_currency @invoice.amount
%p
%b= t('simple_form.labels.invoice.deposit') + ':'
= number_to_currency @invoice.deposit
%p
%b= t('simple_form.labels.invoice.deposit_credit') + ':'
= number_to_currency @invoice.deposit_credit
%p
%b= t('simple_form.labels.invoice.note') + ':'
=h @invoice.note
= link_to t('ui.edit'), edit_finance_invoice_path(@invoice)
|
= link_to t('.back'), finance_invoices_path