Updated the template to print the correct interest information. Fixed logic in script to send correct interest information to the template. Added ability to do a test run to a different email address with a real data file (the debug flag replaces the email address with a hard coded one). Added an aborting checking that the payments are listed in order.
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<td align='right'> {{ "$%.2f"|format(item.interest_payment) }} </td>
|
||||
<td align='right'> {{ "$%.2f"|format(item.new_balance) }} </td>
|
||||
</tr>
|
||||
{% if item.month == '12' or loop.last %}
|
||||
{% if item.month == 12 or loop.last %}
|
||||
<tr><td colspan='8'"> Total interest paid in {{item.year}} is {{ "$%.2f"|format(item.annual_interest_to_date) }}.</td></tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user