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.
 
 
 
 
 

211 lines
11 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="ageing_partner">
<t t-call="web.html_container">
<t t-call="web.internal_layout">
<div class="page">
<div class="oe_structure"/>
<h3><span t-esc="res_company.name"/>: Partner Ageing
</h3>
<br></br>
<div>
<div class="row mt32">
<div class="col-3">
<strong>As On Date:</strong>
<p t-esc="report_data[0]['as_on_date']"/>
</div>
<div class="col-3">
<strong>Partners: </strong>
<t t-foreach="report_data[0]['partners']"
t-as="data">
<t t-esc="data"/>
</t>
</div>
<div class="col-3">
<strong>Partner Tag: </strong>
<t t-foreach="report_data[0]['categories']"
t-as="data">
<t t-esc="data"/>
</t>
</div>
</div>
<br></br>
<div class="row mb32">
<div class="col-3">
<strong>Account Type:</strong>
<p t-esc="report_data[0]['type']"/>
</div>
<div class="col-3">
<strong>Partner Type:</strong>
<p t-esc="report_data[0]['partner_type']"/>
</div>
<div class="col-3">
<strong>Target Moves:</strong>
<p t-esc="report_data[0]['target_moves']"/>
</div>
</div>
<table class="table table-sm table-reports">
<thead>
<tr class="text-center">
<th style="text-align:left;" >Entry Label</th>
<th style="text-align:left;" >Due Date</th>
<th style="text-align:left;" >Journal</th>
<th style="text-align:left;" >Account</th>
<th style="text-align:right;" colspan="1">Not Due</th>
<th style="text-align:right;" colspan="1">0 - 20</th>
<th style="text-align:right;" colspan="1">21 - 40</th>
<th style="text-align:right;" colspan="1">41 - 60</th>
<th style="text-align:right;" colspan="1">61 - 80</th>
<th style="text-align:right;" colspan="2">81 - 100</th>
<th style="text-align:right;" colspan="2">100 +</th>
</tr>
</thead>
<tbody>
<t t-foreach="account_data" t-as="line">
<t t-if="account_data[line]['count']">
<tr style="border-bottom: 2px solid black;">
<td colspan="4">
<span style="color: white;" t-esc="'..'"/>
<strong>
<span t-esc="account_data[line]['partner_name']"/>
</strong>
</td>
<td class="text-right">
<strong>
<span t-esc="account_data[line]['Not']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</strong>
</td>
<td class="text-right">
<strong>
<span t-esc="account_data[line]['value_20']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</strong>
</td>
<td class="text-right">
<strong>
<span t-esc="account_data[line]['2140']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</strong>
</td>
<td class="text-right">
<strong>
<span t-esc="account_data[line]['4160']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</strong>
</td>
<td class="text-right">
<strong>
<span t-esc="account_data[line]['6180']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</strong>
</td>
<td class="text-right" colspan="2">
<strong>
<span t-esc="account_data[line]['81100']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</strong>
</td>
<td class="text-right">
<strong>
<span t-esc="account_data[line]['100']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</strong>
</td>
</tr>
<t t-foreach="account_data[line]['partner_move_lines'][2]" t-as="sub_line">
<tr>
<td style="text-align:left;">
<t t-esc="sub_line.get('move_name')"/>
</td >
<td style="text-align:left;">
<t t-esc="sub_line.get('date_maturity')"/>
</td>
<td style="text-align:left;">
<t t-esc="sub_line.get('journal_name')"/>
</td>
<td colspan="1" style="text-align:left;">
<t t-esc="sub_line.get('account_code')"/>
</td>
<td colspan="1" style="text-align:right;">
<t t-esc="sub_line.get('range_0')"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</td>
<td colspan="1" style="text-align:right;">
<t t-esc="sub_line.get('range_1')"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</td>
<td colspan="1" style="text-align:right;">
<t t-esc="sub_line.get('range_2')"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</td>
<td colspan="1" style="text-align:right;">
<t t-esc="sub_line.get('range_3')"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</td>
<td colspan="1" style="text-align:right;">
<t t-esc="sub_line.get('range_4')"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</td>
<td colspan="2" style="text-align:right;">
<t t-esc="sub_line.get('range_5')"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</td>
<td colspan="2" style="text-align:right;">
<t t-esc="sub_line.get('range_5')"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
</td>
</tr>
</t>
</t>
</t>
</tbody>
</table>
</div>
<br></br>
</div>
</t>
</t>
</template>
<report id="action_print_ageing_partner"
model="dynamic.ageing.partner"
report_type="qweb-pdf"
menu="False"
string="Partner Ageing"
name="dynamic_financial_report.ageing_partner"
file="dynamic_financial_report.ageing_partner"
/>
</odoo>