%= render 'header' %>
Subtotal: | <%= number_to_currency(@invoice.subtotal.to_f / 100.0) %> |
---|---|
<%= "#{@invoice.coupon.stripe_id} (#{coupon_off(@invoice.coupon)})" %> | <%= number_to_currency(@invoice.coupon.discount(@invoice.subtotal) / 100.0) %> |
Total: | <%= number_to_currency(@invoice.total.to_f / 100.0) %> |
Amount paid: | <%= number_to_currency(@invoice.charge.amount.to_f / 100.0) %> |
Amount | Description | Period | |
---|---|---|---|
<%= number_to_currency(invoice_item.amount.to_f / 100.0) %> | <% if invoice_item.description.present? %><%= invoice_item.description %> | <% else %>Subscription to <%= invoice_item.plan.name %> (<%= plan_cost(invoice_item.plan) %>) | <% end %><%= invoice_item.period_start.strftime('%Y/%m/%d %H:%M') %> to <%= invoice_item.period_end.strftime('%Y/%m/%d %H:%M') %> |