summaryrefslogtreecommitdiff
path: root/base_accounting_kit/report/cash_flow_report.xml
blob: 839767d648f94c3b52fae08910ab1d56052481af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <template id="report_cash_flow">
        <t t-call="web.html_container">
            <t t-foreach="docs" t-as="o">
                <t t-call="web.internal_layout">
                    <div class="page">
                        <h2 t-esc="data['account_report_id'][1]"/>

                        <div class="row mt32 mb32">
                            <div class="col-4">
                                <strong>Target Moves:</strong>
                                <p>
                                    <span t-if="data['target_move'] == 'all'">All Entries</span>
                                    <span t-if="data['target_move'] == 'posted'">All Posted Entries</span>
                                </p>
                            </div>
                            <div class="col-4">
                                <p>
                                    <strong>Date from :</strong>
                                    <span t-esc="data['date_from']"/>
                                    <br/>
                                    <strong>Date to :</strong>
                                    <span t-esc="data['date_to']"/>
                                </p>
                            </div>
                        </div>
                        <table class="table table-sm table-reports">
                            <thead>
                                <tr>
                                    <th>
                                        <strong>Name</strong>
                                    </th>
                                    <th class="text-right" t-if="data['debit_credit']">
                                        <strong>Debit</strong>
                                    </th>
                                    <th class="text-right" t-if="data['debit_credit']">
                                        <strong>Credit</strong>
                                    </th>
                                    <th class="text-right">
                                        <strong>Balance</strong>
                                    </th>
                                    <th class="text-right" t-if="data['enable_filter']">
                                        <strong t-esc="data['label_filter']"/>
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr t-foreach="get_account_lines" t-as="a">
                                    <t t-if="a['level'] != 0">
                                        <t t-if="a.get('level') &gt; 3">
                                            <t t-set="style" t-value="'font-weight: normal;'"/>
                                        </t>
                                        <t t-if="not a.get('level') &gt; 3">
                                            <t t-set="style" t-value="'font-weight: bold;'"/>
                                        </t>
                                        <td>
                                            <span style="color: white;" t-esc="'..' * a.get('level', 0)"/>
                                            <span t-att-style="style" t-esc="a.get('name')"/>
                                        </td>
                                        <td t-if="data['debit_credit']" class="text-right" style="white-space: text-nowrap;">
                                            <span t-att-style="style" t-esc="a.get('debit')" t-if="data['debit_credit']"
                                                  t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
                                        </td>
                                        <td t-if="data['debit_credit']" class="text-right" style="white-space: text-nowrap;">
                                            <span t-att-style="style" t-esc="a.get('credit')"
                                                  t-if="data['debit_credit']"
                                                  t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
                                        </td>
                                        <td class="text-right" style="white-space: text-nowrap;">
                                            <span t-att-style="style" t-esc="a.get('balance')"
                                                  t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
                                        </td>
                                        <td class="text-right">
                                            <span t-att-style="style" t-esc="a.get('balance_cmp')"
                                                  t-if="data['enable_filter']"
                                                  t-options="{'widget': 'monetary', 'display_currency': env.company.currency_id}"/>
                                        </td>
                                    </t>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </t>
            </t>
        </t>
    </template>
</odoo>