<%= @invoice.number %>

← all invoices

Client
<%= @invoice.client_name %> <<%= @invoice.client_email %>>
Issued
<%= @invoice.issued_on.strftime('%Y-%m-%d') %>
Due
<%= @invoice.due_on.strftime('%Y-%m-%d') %>
Total
<%= @invoice.currency %> <%= '%.2f' % @invoice.total %><% unless @invoice.currency == 'GEL' %> · GEL <%= '%.2f' % @invoice.total_gel %><% end %>
Status
<%= @invoice.status %>
<% if @invoice.cancelled? %>
Cancelled
<%= @invoice.cancelled_at.utc.strftime('%Y-%m-%d %H:%M UTC') %><%= " · #{@invoice.cancel_reason}" if @invoice.cancel_reason %>
<% end %> <% if @invoice.hidden %>
Visibility
hidden only superusers see it in the admin
<% end %> <% if @invoice.paid_at %>
Paid at
<%= @invoice.paid_at.utc.strftime('%Y-%m-%d %H:%M UTC') %>
<% end %> <% if @invoice.crypto? %>
<%= @invoice.crypto_coin %>
<% if (amt = @invoice.crypto_amount_due) %><%= fmt_crypto(amt) %> <%= @invoice.crypto_coin %><% if @invoice.crypto_rate %> @ <%= fmt_rate(@invoice.crypto_rate) %> <%= @invoice.currency %><% end %>
<% end %> <%= @invoice.crypto_address %>
<% end %>

Actions

Public landing page  ·  Download PDF

Share this URL with the client:
https://asxp.io/i/<%= @invoice.uuid %>

<% if can?('invoices', 'write') %>
<% unless @invoice.cancelled? %> <% today = Time.now.utc.to_date.iso8601 %> <% if @invoice.paid? %> <% end %> <% end %> <% if @invoice.cancelled? %>
<% else %>
<% end %> <% if current_user.superuser %>
<% end %>
<% end %>

<% if can?('invoices', 'write') %>Use as template for a new invoice →<% end %>

<% unless @invoice.notes.to_s.strip.empty? %>

Notes

<%= @invoice.notes %>

<% end %>