Files
mortgage/statement.pdf.jinja
JohnKent 53327a9e09 Initial commit. Things dont work yet.
--
user: JohnKent
branch 'default'
added greenfield_mortgage.txt
added mortgage.py
added mortgage_template.py
added statement.pdf.jinja
added statement.txt.jinja
2018-12-19 23:09:04 -05:00

82 lines
3.5 KiB
Django/Jinja

<html>
<body>
<font face='arial' size='14'><p align='center'>{{ statement.title }}</p></font>
<font face='arial' size='10'><p align='center'>{{ statement.lender.name }}</p></font>
<font face='arial' size='8'>
<p align='center'>{{ statement.lender.phone }} - {{ statement.lender.address }} -
{{ statement.lender.city }} {{statement.lender.state }} {{ statement.lender.zip }}</p>
<p align='right'>Statement Date: {{ statement.date }}</p>
<p/>
<table>
<thead><tr><th width='45%' align='left'>Loan Information</th><th width='45%'>&nbsp;</th></tr></thead>
<tbody>
<tr><td>Borrower: {{ statement.borrower.name }}&nbsp;</td> <td>Account Number: {{ statement.loan.account_number }}</td></tr>
<tr><td>{{ statement.borrower.address }}&nbsp;</td> <td>Origination Date: {{ statement.loan.origination_date }}</td></tr>
<tr><td>{{ statement.borrower.city }}, {{statement.borrower.state }} {{ statement.borrower.zip }}</td>
<td>Original Principal: {{ "$%.2f"|format(statement.loan.principal) }}</td></tr>
<tr><td>Rate: {{statement.loan.rate }} </td> <td>Term: {{statement.loan.term }} months </td></tr>
<tr><td>Next Payment Due Date: {{statement.loan.next_due_date}} </td> <td>Payment Due: {{ "$%.2f"|format(statement.loan.next_payment_amt) }} </td></tr>
</tbody>
</table>
<p/>
<p class='section_header' color='red'><font face='arial' size='14'>Payment History</font></p>
<table>
<thead><tr>
<th width='5%'>#</td>
<th width='10%'>Due Date</th>
<th width='10%'>Date Paid</th>
<th width='10%'>Days Interest</th>
<th width='15%' align='right'>Payment Amt</th>
<th width='15%' align='right'>Principal Pmt</th>
<th width='15%' align='right'>Interest Pmt</th>
<th width='20%' align='right'>New Balance</th>
</tr></thead>
<tbody>
{% for item in past_payments %}
<tr><td align='center'> {{ item.payment_number }} </td>
<td align='center'> {{ item.bill_date }} </td>
<td align='center'> {{ item.payment_date }} </td>
<td align='center'> {{ item.days_of_interest }} </td>
<td align='right'> {{ "$%.2f"|format(item.payment_amount) }} </td>
<td align='right'> {{ "$%.2f"|format(item.principal_payment) }} </td>
<td align='right'> {{ "$%.2f"|format(item.interest_payment) }} </td>
<td align='right'> {{ "$%.2f"|format(item.new_balance) }} </td>
</tr>
{% if item.print_interest_total %}
<tr><td colspan='8'"> {{ item.interest_total_message }} </td></tr>
{% endif %}
{% endfor %}
</tbody>
</table>
<p>Total interest paid to date is {{ "$%.2f"|format(total_interest_paid_to_date) }}.</p>
<p/> <p/>
<p class='section_header'><font face='arial' size='14'>Remaining Amortization</font></p>
<table>
<thead><tr>
<th width='8%'>#</th>
<th width='15%'>Due Date</th>
<th width='8%'>Days Interest</th>
<th width='15%' align='right'>Payment Amt</th>
<th width='15%' align='right'>Principal Pmt</th>
<th width='15%' align='right'>Interest Pmt</th>
<th width='20%' align='right'>Principal Balance</th>
</tr></thead>
<tbody>
{% for item in future_payments %}
<tr><td align='center'> {{ item.payment_number }} </td>
<td align='center'> {{ item.payment_date }} </td>
<td align='center'> {{ item.days_of_interest }} </td>
<td align='right'> {{ "$%.2f"|format(item.payment_amount) }} </td>
<td align='right'> {{ "$%.2f"|format(item.principal_payment) }} </td>
<td align='right'> {{ "$%.2f"|format(item.interest_payment) }} </td>
<td align='right'> {{ "$%.2f"|format(item.new_balance) }} </td>
</tr>
{% endfor %}
</tbody>
</table>
<p>Balloon Payment Due: {{ "$%.2f"|format(balloon_payment) }} </p>
</font>
</body>
</html>