summaryrefslogtreecommitdiff
path: root/account_reports_xlsx/views/supplier_aging_report_view.xml
blob: d2c0cd02628a80536bdb255ccdf8f9e379feccad (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
<odoo>
    <data>
        <template id="account_reports_xlsx.aging_partnerbalance">
            <t t-call="web.html_container">
                <t t-call="web.external_layout">
                    <div class="page">
                        <h2>Aged Partner Balance</h2>
                        <div class="row mt32">
                            <div class="col-xs-3">
                                <strong>Start Date:</strong>
                                <p t-esc="data['date_from']"/>
                            </div>
                            <div class="col-xs-3">
                                <strong>Period Length (days)</strong>
                                <p t-esc="data['period_length']"/>
                            </div>
                        </div>
                        <div class="row mb32">
                            <div class="col-xs-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-xs-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-condensed">
                            <thead>
                                <tr>
                                    <th>Partners</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">Total</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']"/>
                                    </td>
                                    <td class="text-right">
                                        <span t-esc="round(partner['4'], 3)"/>
                                    </td>
                                    <td class="text-right">
                                        <span t-esc="round(partner['3'], 3)"/>
                                    </td>
                                    <td class="text-right">
                                        <span t-esc="round(partner['2'], 3)"/>
                                    </td>
                                    <td class="text-right">
                                        <span t-esc="round(partner['1'], 3)"/>
                                    </td>
                                    <td class="text-right">
                                        <span t-esc="round(partner['0'], 3)" />
                                    </td>
                                    <td class="text-right">
                                        <span t-esc="round(partner['total'], 3)"/>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </t>
            </t>
        </template>
    </data>
</odoo>