Updated all of the payment files to reflect new format. Updated the PDF generation template. Updated the email sending code. Fixed a few off by one errors when the last payment also is the last payment of the year.
This commit is contained in:
56
brendamortgage.json
Normal file
56
brendamortgage.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"htmlTemplate": "statement.pdf.jinja",
|
||||
"txtTemplate": "statement.txt.jinja",
|
||||
"format": "html",
|
||||
"email": {
|
||||
"from_address": "jkent3rd@gmail.com",
|
||||
"to_address": "bck@virginia.edu",
|
||||
"server": "smtp.gmail.com",
|
||||
"password": "pvyrbcnzrjoizprn",
|
||||
"template": "./template.txt",
|
||||
"send_pdf": "true",
|
||||
"send_text": "true",
|
||||
"subject": "Your loan statement...",
|
||||
"body": "Your loan statement is attached.",
|
||||
"text": "Please see your most recent account statement."
|
||||
},
|
||||
"parameters": {
|
||||
"account_number": "100001",
|
||||
"principal": 35000.00,
|
||||
"interest_rate": 5.0,
|
||||
"periods_per_year": 12,
|
||||
"periods": 180,
|
||||
"start_date": "2018-06-25",
|
||||
"start_interest_date": "2018-07-01",
|
||||
"first_payment_month": "2018-08-01",
|
||||
"monthly_payment": 278.15,
|
||||
"payment_day_of_month": "01"
|
||||
},
|
||||
"borrower": {
|
||||
"name": "Grandma Tina's Properties, LLC",
|
||||
"address": "743 Madison St NW",
|
||||
"city": "Washington",
|
||||
"state": "DC",
|
||||
"zip": "20011"
|
||||
},
|
||||
"lender": {
|
||||
"name": "John Kent",
|
||||
"phone": "434-510-7272",
|
||||
"address": "109 Shores Rd",
|
||||
"city": "Palmyra",
|
||||
"state": "VA",
|
||||
"zip": "22963"
|
||||
},
|
||||
"header": {
|
||||
"title": "Mortgage Loan Statement - 185 James River Rd, Scottsville VA",
|
||||
"date": "Today"
|
||||
},
|
||||
"payments": [
|
||||
["2018-08-01", "278.15"],
|
||||
["2018-09-01", "278.15"],
|
||||
["2018-10-01", "278.15"],
|
||||
["2018-11-01", "278.15"],
|
||||
["2018-12-01", "278.15"],
|
||||
["2019-01-01", "278.15"]
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user