% s = @stats %> <% money = ->(v) { whole, frac = ('%.2f' % v).split('.'); "#{whole.reverse.scan(/\d{1,3}/).join(',').reverse.sub(/\A,/, '')}.#{frac}" } %> <% gel = ->(v) { "₾ #{money.(v)}" } %> <%== erb :'admin/_nav', layout: false %>
GEL at each invoice's captured rate. Cancelled invoices are excluded from all amounts.
| Month | Issued | Invoiced ₾ | Received ₾ |
|---|---|---|---|
| <%= m.strftime('%Y-%m') %> | <%= n %> | <%= money.(inv) %> | <%= money.(rec) %> |
| Currency | Invoiced | Received | Outstanding |
|---|---|---|---|
| <%= cur %> | <%= money.(v[:invoiced]) %> | <%= money.(v[:paid]) %> | <%= money.(v[:outstanding]) %> |
| Client | Invoices | Invoiced ₾ |
|---|---|---|
| <%= client %> | <%= n %> | <%= money.(g) %> |
| Asset | Invoices |
|---|---|
| <%= coin %> <%= name %> | <%= n %> |