Migration and template for email invoice

This commit is contained in:
Kyle Drake 2017-10-04 20:29:15 -07:00
parent 68352e3d8f
commit 6c9267d791
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,9 @@
Sequel.migration do
up {
DB.add_column :sites, :email_invoice, :boolean, default: false
}
down {
DB.drop_column :sites, :email_invoice
}
end

View file

@ -0,0 +1,13 @@
Neocities Invoice
For: Neocities Supporter Account
Date: <%= date.strftime("%D") %>
Billing Period: <%= period_start.strftime("%D") %> - <%= period_end.strftime("%D") %>
Amount: <%= Money.new(amount, "USD").format %>
You have been successfully charged. Thank you for being a Neocities supporter!
- The Neocities Team