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.
88 lines
4.2 KiB
88 lines
4.2 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- action for statement report-->
|
|
<record id="res_partner_action" model="ir.actions.report">
|
|
<field name="name">Statement Report</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="report_type">qweb-pdf</field>
|
|
<field name="report_name">statement_report.res_partner_statement_report_template</field>
|
|
<field name="report_file">statement_report.res_partner_statement_report_template</field>
|
|
<field name="print_report_name">'Statement Report- %s' %(object.name)</field>
|
|
<field name="binding_model_id" ref="model_res_partner"/>
|
|
<field name="binding_type">report</field>
|
|
</record>
|
|
|
|
<!-- statement report template-->
|
|
<template id="res_partner_statement_report_template">
|
|
<t t-call="web.html_container">
|
|
<t t-call="web.external_layout">
|
|
<div page="page">
|
|
<h3>Payment Statement Report</h3>
|
|
</div><br/>
|
|
<table border="0">
|
|
<tr><t t-esc="customer"/></tr><br/><br/>
|
|
<tr><t t-if="street"> <t t-esc="street"/></t></tr><br/>
|
|
<tr><t t-if="street2"> <t t-esc="street2"/></t></tr><br/>
|
|
<tr><t t-if="city"> <t t-esc="city"/></t></tr><br/>
|
|
<tr><t t-if="state"> <t t-esc="state"/></t></tr><br/>
|
|
</table>
|
|
<br/><br/>
|
|
<table class="table" style="align-items: center;">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Invoice/Bill Number</th>
|
|
<th>Due Date</th>
|
|
<th>Invoices/Debit</th>
|
|
<th>Balance</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<t t-foreach="my_data" t-as="line">
|
|
<tr>
|
|
<td align="center"><t t-esc="line['invoice_date']"/></td>
|
|
<td align="center"><t t-esc="line['name']"/></td>
|
|
<td align="center"><t t-esc="line['invoice_date_due']"/></td>
|
|
<td align="center">
|
|
<t t-esc="currency"/>
|
|
<t t-esc="line['sub_total']"/>
|
|
</td>
|
|
<td align="center">
|
|
<t t-esc="currency"/>
|
|
<t t-esc="line['balance']"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</tbody>
|
|
</table>
|
|
<br/>
|
|
<t t-if="total">
|
|
<div class="clearfix" name="so_total_summary">
|
|
<div id="total" class="row" name="total">
|
|
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto">
|
|
<table class="table table-sm">
|
|
<tbody>
|
|
<tr>
|
|
<td>Total Amount:</td>
|
|
<td>
|
|
<t t-esc="currency"/>
|
|
<t t-esc="total"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Total Balance:</td>
|
|
<td>
|
|
<t t-esc="currency"/>
|
|
<t t-esc="balance"/>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|