% html_title @customer.name, l(:label_payments) %>
<%= l(:label_no_payments) %>
<% else %>| <%= l(:label_payment_date) %> | <%= l(:label_payment_method) %> | <%= l(:label_payment_reference) %> | <%= l(:label_payment_applies_to) %> | <%= l(:label_memo) %> | <%= l(:label_amount) %> | <%= l(:label_payment_unapplied) %> | |
|---|---|---|---|---|---|---|---|
| <%= link_to format_date(payment.txn_date), qbo_payment_path(payment.id) %> | <%= RedmineQboBilling::PaymentWriter.payment_method_name(payment) %> | <%= payment.payment_ref_number %> |
<% if applied.empty? %>
<%= l(:label_payment_deposit) %>
<% else %>
<% applied.each do |invoice_id, number, amount| %>
<%= link_to "##{number}", RedmineQboBilling.invoice_writer? ? edit_qbo_invoice_path(invoice_id) : invoice_path(invoice_id) %>
<%= number_to_currency(amount) %>
<% end %>
<% end %>
|
<%= truncate(payment.private_note.to_s, length: 60) %> | <%= number_to_currency(payment.total) %> | <%= unapplied > 0 ? number_to_currency(unapplied) : '' %> | <% if RedmineQboBilling.payment_receiver? %> <%= link_to sprite_icon('edit', l(:button_edit)), edit_qbo_payment_path(payment.id), class: 'icon icon-edit' %> <% end %> <%= link_to sprite_icon('application-pdf', l(:button_print_payment)), pdf_qbo_payment_path(payment.id), class: 'icon icon-pdf', target: :_blank %> |
| <%= l(:label_payment_totals) %> (<%= @payments.size %>) | <%= number_to_currency(@totals[:received]) %> | <%= @totals[:unapplied] > 0 ? number_to_currency(@totals[:unapplied]) : '' %> | |||||