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.
 
 
 
 
 

111 lines
4.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Report Template-->
<template id="report_trial_balance">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-if="start_date or end_date or journals_name or state">
<div style="padding:10px;">
<t t-if="start_date">
Start Date :
<t t-esc="start_date"/><br/><br/>
</t>
<t t-if="end_date">
End Date :
<t t-esc="end_date"/><br/><br/>
</t>
<t t-if="journals_name">
Journals:
<t t-esc="journals_name"/><br/><br/>
</t>
<t t-if="state">
State:
<t t-esc="state"/><br/><br/>
</t>
</div>
</t>
<div class="page">
<center>
<t t-if="query">
<h2>Trial Balance</h2>
</t>
<t t-else="">
<h3>There is no data</h3>
</t>
</center>
</div>
<br/>
<t t-if="query">
<table class="table table-sm">
<thead>
<tr>
<th>Code</th>
<th>Account</th>
<th>Debit</th>
<th>Credit</th>
<th>Balance</th>
</tr>
</thead>
<tbody>
<tr t-foreach="query" t-as="i">
<td>
<span t-esc="i['code']"/>
</td>
<td>
<span t-esc="i['ac_name']"/>
</td>
<td>
<span t-esc="currency"/>
<span t-esc="i['debit']"/>
</td>
<td>
<span t-esc="currency"/>
<span t-esc="i['credit']"/>
</td>
<td>
<span t-esc="currency"/>
<span t-esc="i['balance']"/>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;">
<b>Total</b>
</td>
<td>
<b>
<span t-esc="currency"/>
<span t-esc="total_debit"/>
</b>
</td>
<td>
<b>
<span t-esc="currency"/>
<span t-esc="total_credit"/>
</b>
</td>
<td>
<b>
<span t-esc="currency"/>
<span t-esc="balance"/>
</b>
</td>
</tr>
</tbody>
</table>
</t>
</t>
</t>
</template>
<!--Report Action-->
<record id="action_report_trial_balance" model="ir.actions.report">
<field name="name">Trial Balance</field>
<field name="model">trial.balance.report</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">trial_balance_pdf.report_trial_balance</field>
<field name="report_file">trial_balance_pdf.report_trial_balance</field>
<field name="binding_model_id" ref="model_trial_balance_report"/>
<field name="binding_type">report</field>
</record>
</odoo>