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.
82 lines
5.2 KiB
82 lines
5.2 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="paid_amount" t-value='1'></t>
|
|
<t t-foreach="get_details_invoice(doc)" t-as="rec">
|
|
<tr>
|
|
<td><span t-att-style="style" t-esc="rec['total_amount']"/></td>
|
|
<t t-set="paid_amount" t-value="rec['paid']"/>
|
|
<td><span t-att-style="style" t-esc="rec['paid']"/> </td>
|
|
<td><span t-att-style="style" t-esc="rec['balance_amount']"/></td>
|
|
</tr>
|
|
</t>
|
|
</tbody>
|
|
</table>
|
|
<t t-if="paid_amount != 0">
|
|
<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>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</odoo>
|
|
|