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.
 
 
 
 
 

83 lines
4.9 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_payment_print">
<t t-call="report.html_container">
<t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" />
<t t-call="report.internal_layout">
<div class="page" >
<t t-call="report.external_layout">
<div class="header" style="text-align:center;"><h1><strong>Payment Receipt</strong></h1></div>
<div class="row mt32 mb32" style="text-align:center;">
</div>
<div class="row mt32 mb32" >
<div class="col-xs-12" style="text-align:left;">
<span style="float:left;"><strong>Partner:</strong><span t-field="doc.partner_id.name"/></span>
<span style="float:left; padding-left:50px;"><strong>Invoice Date:</strong><span t-field="doc.date_invoice"/></span>
<span style="float:left; padding-left:50px;"><strong>Due Date:</strong><span t-field="doc.date_due"/></span>
</div>
</div>
<table class="table table-condensed">
<thead>
<tr >
<th style="background-color:#9b9da0 !important;">INVOICE TOTAL</th>
<th style="background-color:#9b9da0 !important;">PAID</th>
<th style="background-color:#9b9da0 !important;">DUE</th>
</tr>
</thead>
<tbody>
<t t-set="balance" t-value='0'></t>
<t t-set="balance" t-value = "doc.amount_total-doc.residual"></t>
<tr>
<td>
<p t-field="doc.amount_total"/>
</td>
<td><strong><t t-esc="balance"></t></strong></td>
<td>
<p t-field="doc.residual"/>
</td>
</tr>
</tbody>
</table>
<div class="row mt32 mb32" style="text-align:center;">
<div class="col-xs-12">
<h3><strong>Payment Details</strong></h3>
</div>
</div>
<t t-if="doc.amount_total != doc.residual">
<table class="table table-condensed">
<thead>
<tr >
<th style="background-color:#9b9da0 !important;">MEMO</th>
<th style="background-color:#9b9da0 !important;">PAYMENT DATE</th>
<th style="background-color:#9b9da0 !important;">METHOD</th>
<th style="background-color:#9b9da0 !important;">AMOUNT</th>
</tr>
</thead>
<tbody>
<t t-foreach="get_details(doc)" t-as="b">
<tr>
<td>
<span t-att-style="style" t-esc="b['memo']"/>
</td>
<td>
<span t-att-style="style" t-esc="b['date']"/>
</td>
<td>
<span t-att-style="style" t-esc="b['method']"/>
</td>
<td>
<span t-att-style="style" t-esc="b['amount']"/>
</td>
</tr>
</t>
</tbody>
</table>
</t>
</t>
</div>
</t>
</t>
</template>
</odoo>