Files
tra_backend/reports/views/report_payment_receipt.xml
2020-09-23 11:14:39 +05:30

158 lines
8.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_payment_receipt_view_documents">
<div class="header">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"></t>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t>
</t>
<div class="row mt32 mb32">
<div class="col-12">
<font color="#fff"><img t-att-src="'data:image/png;base64,%s' % to_text(company.logo)" style="max-height: 250px;"/></font>
</div>
</div>
</div>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=lang)"/>
<div class="page">
<h2 style=" background-color: #3498DB;"><font color="#fff">Cash/Cheque Payment Voucher<span t-field="o.name"/></font></h2>
<table class="table table-sm">
<tr>
<th style="border:1px solid;width:50%;top:2px">
<strong>Code:</strong><br/>
<strong>Address:</strong><br/>
<strong>Telephone Number:</strong><br/>
<strong>Account Payee:</strong><br/>
</th>
<th style="width:5%;"></th>
<th style="border:1px solid;width:45%">
<strong>Receipt Number</strong>:<span t-field="o.name"/><br/>
<strong>Date </strong>:<span t-field="o.payment_date"/><br/>
</th>
</tr>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
<tr>
<th style="width:50%">
</th>
<th style="width:5%;"></th>
<th style="border:1px solid;width:45%">
<strong>Cheque Number: </strong><br/>
</th>
</tr>
</table>
<table class="table table-sm">
<tr>
<th style="border:1px solid;width:50%">
<strong>Bank Account</strong><br/>
<strong>Bank Account Number:</strong><br/>
</th>
<th style="width:5%;"></th>
<th style="border:1px solid;width:45%">
<strong>Currency</strong><span t-field="o.currency_id.name"/><br/>
<strong>Exchange Rate</strong><br/>
</th>
</tr>
<!-- <div class="row mt64">
<div class="col-6">
<strong>Bank Account: </strong><br/>
<strong>Bank Account Number: </strong><br/>
</div>
</div> -->
<!-- <div class="row mt64" style="border:1px solid;width:350px;float:right;">
<div class="col-6">
<strong>Currency: </strong><span t-field="o.currency_id.name"/><br/>
<strong>Exchange Rate: </strong><br/>
</div>
</div> -->
</table>
<!-- <div class="row mt64" style="border:1px solid;">
<div class="col-6">
<strong>Description: </strong><br/><br/><br/>
</div>
</div> -->
<table class="table table-sm">
<tr>
<th style="border:1px solid;width:100%;">
<strong>Description:</strong><br/>
<span t-field="o.communication"/>
</th>
</tr>
</table>
<table class="table table-sm">
<thead>
<tr>
<th class="text-center" style="background-color:#3498DB !important;color:#FFF !important;border:1px solid;"><span>Particulars</span></th>
<th class="text-center" style="background-color:#3498DB !important;color:#FFF !important;border:1px solid;"><span>Account</span></th>
<th class="text-center" style="background-color:#3498DB !important;color:#FFF !important;border:1px solid;"><span>Amount</span></th>
<th class="text-center" style="background-color:#3498DB !important;color:#FFF !important;border:1px solid;"><span>Cheque book Amount</span></th>
</tr>
</thead>
<tbody>
<tr t-foreach="o" t-as="inv">
<td class="text-center" style="border:1px solid;"><span t-field="o.partner_id.name"/></td>
<td class="text-center" style="border:1px solid;"><!-- <span t-field="inv.amount_total"/> --></td>
<td class="text-center" style="border:1px solid;"><span t-field="o.amount"/></td>
<td class="text-center" style="border:1px solid;"><span t-field="o.amount"/></td>
</tr>
<tr>
<td></td>
<!-- <td></td> -->
<td colspan="2" class="text-center">Home Currency Total</td>
<td class="text-center" style="border:1px solid;"><span t-field="o.amount"/></td>
</tr>
<tr>
<td></td>
<!-- <td></td> -->
<td colspan="2" class="text-center">Total</td>
<td class="text-center" style="border:1px solid;"><span t-field="o.amount"/></td>
</tr>
</tbody>
</table>
<strong style="background-color:#3498DB !important;color:#FFF !important;">Total in Words:</strong>
<table class="table table-sm" style="border:1px solid;">
<tr>
<th style="width:100%;border:1px solid;">
<strong><span t-field="o.check_amount_in_words"/></strong><br/><br/><br/>
</th>
</tr>
</table>
<div class="row mt30"></div>
<table class="table table-sm">
<thead>
<tr>
<th class="text-center" style="border:1px solid;padding:15px;"><span>Prepared by</span></th>
<th class="text-center" style="border:1px solid;padding:15px;"><span>Checked by</span></th>
<th class="text-center" style="border:1px solid;padding:15px;"><span>Authorized by</span></th>
<th class="text-center" style="border:1px solid;padding:15px;"><span>Received by</span></th>
</tr>
</thead>
<tbody>
<tr t-foreach="o" t-as="inv">
<td class="text-center" style="border:1px solid;padding:15px;"><!-- <span t-field="inv.name"/> --></td>
<td class="text-center" style="border:1px solid;padding:15px;"><!-- <span t-field="inv.amount_total"/> --></td>
<td class="text-center" style="border:1px solid;padding:15px;"><!-- <span t-esc="o._get_invoice_payment_amount(inv)" t-options="{'widget': 'monetary', 'display_currency': inv.currency_id}"/> --></td>
<td class="text-center" style="border:1px solid;padding:15px;"><!-- <span t-field="inv.amount_residual"/> --></td>
</tr>
</tbody>
</table>
</div>
</t>
</template>
<template id="report_payment_receipt_views">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-set="lang" t-value="o.partner_id.lang"/>
<t t-call="reports.report_payment_receipt_view_documents" t-lang="lang"/>
</t>
</t>
</template>
</odoo>