358 lines
21 KiB
XML
358 lines
21 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<template id="report_account_cash_flow">
|
|
<t t-call="web.html_container">
|
|
<t t-call="web.internal_layout">
|
|
<div class="page">
|
|
<h3 style="text-align:center">Cash Flow Statement
|
|
</h3>
|
|
<p style="text-align:center;margin-top: -10px;">Branch: <span t-esc="branch_name"/> </p>
|
|
<p style="text-align:center;margin-top: -10px;">upto
|
|
<span t-esc="datetime.datetime.now().strftime('%Y-%m-%d')"
|
|
t-options="{'widget': 'date'}"/>
|
|
</p>
|
|
|
|
<div class="row">
|
|
<table class="table-condensed" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<td><font color="white">........</font></td>
|
|
<t t-foreach="get_years" t-as="year">
|
|
<td class="text-right"><b><t t-esc="year"/></b></td>
|
|
</t>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span style="font-weight:bold;">
|
|
Operating
|
|
Activities
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;padding-left:20px;">
|
|
Part
|
|
A
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<t
|
|
t-if="get_data.get('operation_income', False)">
|
|
<tr>
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;padding-left:40px;">
|
|
Income
|
|
</span>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr t-foreach="get_data['operation_income']['account']"
|
|
t-as="account">
|
|
<td style="padding-left:70px">
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_no']"/>
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_nm']"/>
|
|
</td>
|
|
<t t-foreach="get_years"
|
|
t-as="year">
|
|
<td class="text-right">
|
|
<span t-att-style="style"
|
|
t-esc="get_data['operation_income']['account'][account][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</t>
|
|
|
|
<t t-if="get_data.get('operation_expense', False)">
|
|
<tr>
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;padding-left:40px;">
|
|
Expense
|
|
</span>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr t-foreach="get_data['operation_expense']['account']"
|
|
t-as="account">
|
|
<td style="padding-left:70px">
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_no']"/>
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_nm']"/>
|
|
</td>
|
|
<t t-foreach="get_years"
|
|
t-as="year">
|
|
<td class="text-right">
|
|
<span
|
|
t-esc="get_data['operation_expense']['account'][account][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</t>
|
|
<tr>
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;padding-left:40px;">
|
|
Total
|
|
</span>
|
|
</td>
|
|
<td t-foreach="get_years"
|
|
t-as="year" class="text-right">
|
|
<span
|
|
style="font-weight:bold"
|
|
t-esc="get_total(get_data, year, ['operation_income', 'operation_expense'])"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;padding-left:20px;">
|
|
Part
|
|
B
|
|
</span>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<t t-if="get_data.get('operation_current_asset', False)">
|
|
<tr>
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;padding-left:40px;">
|
|
Current Assets
|
|
</span>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr t-foreach="get_data['operation_current_asset']['account']"
|
|
t-as="account">
|
|
<td style="padding-left:70px">
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_no']"/>
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_nm']"/>
|
|
</td>
|
|
<t t-foreach="get_years"
|
|
t-as="year">
|
|
<td class="text-right">
|
|
<span t-att-style="style"
|
|
t-esc="get_data['operation_current_asset']['account'][account][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</t>
|
|
|
|
<t t-if="get_data.get('operation_current_liability', False)">
|
|
<tr>
|
|
<td>
|
|
<span style="font-weight:bold;padding-left:40px;">
|
|
Current Liabilities
|
|
</span>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr t-foreach="get_data['operation_current_liability']['account']"
|
|
t-as="account">
|
|
<td style="padding-left:70px">
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_no']"/>
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_nm']"/>
|
|
</td>
|
|
<t t-foreach="get_years"
|
|
t-as="year">
|
|
<td class="text-right">
|
|
<span t-att-style="style"
|
|
t-esc="get_data['operation_current_liability']['account'][account][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</t>
|
|
<tr>
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;padding-left:40px;">
|
|
Total
|
|
</span>
|
|
</td>
|
|
<td t-foreach="get_years"
|
|
t-as="year" class="text-right">
|
|
<span style="font-weight:bold;"
|
|
t-esc="get_total(get_data, year, ['operation_current_asset', 'operation_current_liability'])"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;padding-left:20px;">
|
|
Total of (A + B)
|
|
</span>
|
|
</td>
|
|
<td t-foreach="get_years"
|
|
t-as="year" class="text-right">
|
|
<span style="font-weight:bold;"
|
|
t-esc="get_total(get_data, year, ['operation_current_asset', 'operation_current_liability', 'operation_income', 'operation_expense'])"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<t t-if="get_data.get('investing', False)">
|
|
<tr>
|
|
<td>
|
|
<span style="font-weight:bold;">
|
|
Investing Activities
|
|
</span>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr t-foreach="get_data['investing']['account']"
|
|
t-as="account">
|
|
<td style="padding-left:40px">
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_no']"/>
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_nm']"/>
|
|
</td>
|
|
<t t-foreach="get_years"
|
|
t-as="year">
|
|
<td class="text-right">
|
|
<span t-att-style="style"
|
|
t-esc="get_data['investing']['account'][account][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span style="font-weight:bold;padding-left:40px;">
|
|
Total
|
|
</span>
|
|
</td>
|
|
<td t-foreach="get_years"
|
|
t-as="year" class="text-right">
|
|
<span style="font-weight:bold;"
|
|
t-esc="get_data['investing']['total'][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
|
|
<t t-if="get_data.get('financing', False)">
|
|
<tr>
|
|
<td>
|
|
<span style="font-weight:bold;">
|
|
Financing Activities
|
|
</span>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr t-foreach="get_data['financing']['account']"
|
|
t-as="account">
|
|
<td style="padding-left:40px">
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_no']"/>
|
|
<span t-att-style="style"
|
|
t-esc="get_acc_details(account)['ac_nm']"/>
|
|
</td>
|
|
<t t-foreach="get_years"
|
|
t-as="year">
|
|
<td class="text-right">
|
|
<span t-att-style="style"
|
|
t-esc="get_data['financing']['account'][account][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;padding-left:40px;">
|
|
Total
|
|
</span>
|
|
</td>
|
|
<td t-foreach="get_years"
|
|
t-as="year" class="text-right">
|
|
<span style="font-weight:bold;"
|
|
t-esc="get_data['financing']['total'][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
<tr>
|
|
<td>
|
|
<span style="font-weight:bold;">
|
|
Operating + Financing +
|
|
Investing
|
|
</span>
|
|
</td>
|
|
<td t-foreach="get_years"
|
|
t-as="year" class="text-right">
|
|
<span style="font-weight:bold;"
|
|
t-esc="get_total(get_data, year, ['operation_current_asset', 'operation_current_liability', 'operation_income', 'operation_expense', 'financing', 'investing'])"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr t-if="get_data.get('Cash',False)">
|
|
<td>
|
|
<span style="font-weight:bold;">
|
|
Cash
|
|
</span>
|
|
</td>
|
|
<t t-foreach="get_data['Cash']['account']"
|
|
t-as="account">
|
|
<t t-foreach="get_years"
|
|
t-as="year">
|
|
<td class="text-right">
|
|
<span style="font-weight:bold;"
|
|
t-esc="get_data['Cash']['account'][account][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</t>
|
|
</t>
|
|
</tr>
|
|
<tr
|
|
t-if="get_data.get('Bank',False)">
|
|
<td>
|
|
<span
|
|
style="font-weight:bold;">
|
|
Bank
|
|
</span>
|
|
</td>
|
|
<t t-foreach="get_data['Bank']['account']"
|
|
t-as="account">
|
|
<t t-foreach="get_years"
|
|
t-as="year">
|
|
<td class="text-right">
|
|
<span style="font-weight:bold;"
|
|
t-esc="get_data['Bank']['account'][account][year]"
|
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
|
|
</td>
|
|
</t>
|
|
</t>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</flectra> |