summaryrefslogtreecommitdiff
path: root/account_reports_xlsx/views/report_agedpartnerbalance.xml
blob: 40fe28e7908dba4464bd454530a343e407dfede1 (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
89
90
91
92
93
94
95
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_agedpartnerbalance">
    <t t-call="web.html_container">
        <t t-call="web.internal_layout">
            <div class="page">
                <h2>Aged Partner Balance</h2>

                <div class="row mt32">
                    <div class="col-3">
                        <strong>Start Date:</strong>
                        <p t-esc="data['date_from']"/>
                    </div>
                    <div class="col-3">
                        <strong>Period Length (days)</strong>
                        <p t-esc="data['period_length']"/>
                    </div>
                </div>
                <div class="row mb32">
                    <div class="col-3">
                        <strong>Partner's:</strong>
                        <p>
                            <span t-if="data['result_selection'] == 'customer'">Receivable Accounts</span>
                            <span t-if="data['result_selection'] == 'supplier'">Payable Accounts</span>
                            <span t-if="data['result_selection'] == 'customer_supplier'">Receivable and Payable Accounts</span>
                        </p>
                    </div>
                    <div class="col-3">
                        <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>

                <table class="table table-sm">
                    <thead>
                        <tr>
                            <th><span>Partners</span></th>
                            <th class="text-right">
                                <span>Not due</span>
                            </th>
                            <th class="text-right"><span t-esc="data['4']['name']"/></th>
                            <th class="text-right"><span t-esc="data['3']['name']"/></th>
                            <th class="text-right"><span t-esc="data['2']['name']"/></th>
                            <th class="text-right"><span t-esc="data['1']['name']"/></th>
                            <th class="text-right"><span t-esc="data['0']['name']"/></th>
                            <th class="text-right"><span>Total</span></th>
                        </tr>
                        <tr t-if="get_partner_lines">
                            <th>Account Total</th>
                            <th class="text-right"><span t-esc="get_direction[6]" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></th>
                            <th class="text-right"><span t-esc="get_direction[4]" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></th>
                            <th class="text-right"><span t-esc="get_direction[3]" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></th>
                            <th class="text-right"><span t-esc="get_direction[2]" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></th>
                            <th class="text-right"><span t-esc="get_direction[1]" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></th>
                            <th class="text-right"><span t-esc="get_direction[0]" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></th>
                            <th class="text-right"><span t-esc="get_direction[5]" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr t-foreach="get_partner_lines" t-as="partner">
                            <td>
                                <span t-esc="partner['name']"/>
                            </td>
                            <td class="text-right">
                                <span t-esc="partner['direction']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
                            </td>
                            <td class="text-right">
                                <span t-esc="partner['4']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
                            </td>
                            <td class="text-right">
                                <span t-esc="partner['3']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
                            </td>
                            <td class="text-right">
                                <span t-esc="partner['2']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
                            </td>
                            <td class="text-right">
                                <span t-esc="partner['1']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
                            </td>
                            <td class="text-right">
                                <span t-esc="partner['0']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
                            </td>
                            <td class="text-right">
                                <span t-esc="partner['total']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </t>
    </t>
</template>
</odoo>