You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
4.2 KiB
96 lines
4.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- PDF report Template-->
|
|
<template id="loan_report_template">
|
|
<t t-call="web.html_container">
|
|
<t t-call="web.external_layout">
|
|
<div class="page">
|
|
<h3 align="center">Loan Report</h3>
|
|
<div>
|
|
<group>
|
|
<strong>Name:</strong>
|
|
<span t-esc="data['Customer']"/>
|
|
<br/>
|
|
<span t-esc="data['CustomerAddress']"/>
|
|
<br/>
|
|
<span t-esc="data['CustomerAddress2']"/>
|
|
<br/>
|
|
<span t-esc="data['CustomerContact']"/>
|
|
<br/>
|
|
</group>
|
|
</div>
|
|
<group>
|
|
<table class="table table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th>Loan Type</th>
|
|
<th>Tenure</th>
|
|
<th>Loan Amount</th>
|
|
<th>Interest Rate</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<td >
|
|
<t t-esc="data['Loan_Type']"/>
|
|
</td>
|
|
<td >
|
|
<t t-esc="data['Tenure']"/>
|
|
</td>
|
|
<td >
|
|
<t t-esc="data['Loan_Amount']"/>
|
|
</td>
|
|
<td >
|
|
<t t-esc="data['Interest_Rate']"/>
|
|
</td>
|
|
</tbody>
|
|
</table>
|
|
</group>
|
|
<br/>
|
|
<br/>
|
|
<h3 align="center">Amortization Schedule</h3>
|
|
<table class="table table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th>SI.No</th>
|
|
<th>Name</th>
|
|
<th>Date</th>
|
|
<th>Amount</th>
|
|
<th>Interest Amount</th>
|
|
<th>Total Amount</th>
|
|
<th>State</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<t t-set="i" t-value="1"/>
|
|
<tr t-foreach="docs" t-as="line">
|
|
<td>
|
|
<span t-esc="i"/>
|
|
<t t-set="i" t-value="i+1"/>
|
|
</td>
|
|
<td >
|
|
<t t-esc="line['name']"/>
|
|
</td>
|
|
<td >
|
|
<t t-esc="line['date']"/>
|
|
</td>
|
|
<td >
|
|
<t t-esc="line['amount']"/>
|
|
</td>
|
|
<td >
|
|
<t t-esc="line['interest_amount']"/>
|
|
</td>
|
|
<td >
|
|
<t t-esc="line['total_amount']"/>
|
|
</td>
|
|
<td
|
|
t-att-style="'color: ' + ('green' if line['state'] == 'paid' else ('sienna' if line['state'] == 'invoiced' else 'red'))">
|
|
<t t-esc="{'unpaid': 'Unpaid', 'invoiced': 'Invoiced', 'paid': 'Paid'} [line['state']]"/>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|
|
|