View | Details | Raw Unified | Return to bug 21913
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt (-64 / +85 lines)
Lines 1-29 Link Here
1
[% USE raw %]
2
[% USE Asset %]
1
[%- USE Price -%]
3
[%- USE Price -%]
2
[%- USE KohaDates -%]
4
[%- USE KohaDates -%]
3
[%- USE AuthorisedValues -%]
5
[%- USE AuthorisedValues -%]
4
[%- USE Branches -%]
6
[%- USE Branches -%]
5
7
[% SET footerjs = 1 %]
6
[% PROCESS 'accounts.inc' %]
8
[% PROCESS 'accounts.inc' %]
7
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
10
<title>Koha &rsaquo; Patrons &rsaquo; [% INCLUDE 'patron-title.inc' no_html = 1 %] &rsaquo; Details of fee</title>
10
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
11
</head>
12
</head>
12
<body id="pat_discharges" class="pat">
13
14
<body id="pat_accountline_details" class="pat">
13
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'patron-search.inc' %]
16
[% INCLUDE 'patron-search.inc' %]
15
17
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Account for [% INCLUDE 'patron-title.inc' %]</a> &rsaquo; Details for account line [% accountline.id | html %]</div>
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Account for [% INCLUDE 'patron-title.inc' %]</a> &rsaquo;
19
    [% IF type == 'credit' %]
20
        Details of payment
21
    [% ELSIF type == 'debit' %]
22
        Details of fee
23
    [% END %]
24
</div>
25
26
<div class="main container-fluid">
27
    <div class="row">
28
        <div class="col-sm-10 col-sm-push-2">
29
            <main>
30
31
            [% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
17
32
18
<div id="doc3" class="yui-t2">
19
<div id="bd">
20
    <div id="yui-main">
21
        <div class="yui-b">
22
            [% IF accountline %]
33
            [% IF accountline %]
23
                [% IF type == 'credit' %]
34
                [% IF type == 'credit' %]
24
                    <h2>Details for payment</h2>
35
                    <h2>Details of payment</h2>
25
                [% ELSIF type == 'debit' %]
36
                [% ELSIF type == 'debit' %]
26
                    <h2>Details for fee</h2>
37
                    <h2>Details of fee</h2>
27
                [% END %]
38
                [% END %]
28
39
29
                <table id="table_account_fines">
40
                <table id="table_account_fines">
Lines 73-141 Link Here
73
                    </tbody>
84
                    </tbody>
74
                </table>
85
                </table>
75
86
87
76
                [% IF type == 'credit' %]
88
                [% IF type == 'credit' %]
77
                    <h3>Fees paid</h3>
89
                    <h3>Fees paid</h3>
78
                [% ELSIF type == 'debit' %]
90
                [% ELSIF type == 'debit' %]
79
                    <h3>Payments</h3>
91
                    <h3>Payments</h3>
80
                [% END %]
92
                [% END %]
81
93
82
                [% IF account_offsets %]
94
                <table class="accountline-offsets-table" id="accountline-debits-table">
83
                    <table class="accountline-offsets-table" id="accountline-debits-table">
95
                    <thead>
84
                        <thead>
96
                        <tr>
85
                            <tr>
97
                            <th>Date created</th>
86
                                <th>Date created</th>
98
                            <th>Date updated</th>
87
                                <th>Date updated</th>
99
                            <th>Amount</th>
88
                                <th>Amount</th>
100
                            <th>Amount outstanding</th>
89
                                <th>Amount outstanding</th>
101
                            <th>Type</th>
90
                                <th>Type</th>
102
                            <th>Note</th>
91
                                <th>Note</th>
103
                            <th>Transacting librarian</th>
92
                                <th>Transacting librarian</th>
104
                            <th>Date/time of change</th>
93
                                <th>Date/Time of change</th>
105
                            <th>Amount of change</th>
94
                                <th>Amount of change</th>
106
                            <th>Type of change</th>
95
                                <th>Type of change</th>
107
                            <th>&nbsp;</th>
96
                                <th>&nbsp;</th>
108
                        </tr>
97
                            </tr>
109
                    </thead>
98
                        </thead>
99
100
                        <tbody>
101
                            [% FOREACH ao IN account_offsets %]
102
                                [% IF type == 'credit' %]
103
                                    [% SET offset_accountline = ao.debit %]
104
                                [% ELSIF type == 'debit' %]
105
                                    [% SET offset_accountline = ao.credit %]
106
                                [% END %]
107
110
108
                                [% IF offset_accountline %]
111
                    <tbody>
109
                                    <tr>
112
                        [% FOREACH ao IN account_offsets %]
110
                                        <td>[% offset_accountline.date | $KohaDates %]</td>
113
                            [% IF type == 'credit' %]
111
                                        <td>[% offset_accountline.timestamp | $KohaDates  with_hours => 1 %]</td>
114
                                [% SET offset_accountline = ao.debit %]
112
                                        <td>[% offset_accountline.amount | $Price %]</td>
115
                            [% ELSIF type == 'debit' %]
113
                                        <td>[% offset_accountline.amountoutstanding | $Price %]</td>
116
                                [% SET offset_accountline = ao.credit %]
114
                                        <td>[% PROCESS account_type_description account=offset_accountline %]</td>
115
                                        <td>[% offset_accountline.note | html %]</td>
116
                                        <td>[% IF offset_accountline.manager_id %]<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">[% offset_accountline.manager_id | html %]</a>[% END %]</td>
117
                                        <td>[% ao.created_on | $KohaDates  with_hours => 1 %]</td>
118
                                        <td>[% ao.amount | $Price %]</td>
119
                                        <td>[% PROCESS offset_type_description account_offset=ao %]</td>
120
                                        <td><a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a></td>
121
                                    </tr>
122
                                [% END %]
123
                            [% END %]
117
                            [% END %]
124
                        </tbody>
118
125
                    </table>
119
                            [% IF offset_accountline %]
126
                [% ELSE %]
120
                                <tr>
127
                    No details available for this payment.
121
                                    <td>[% offset_accountline.date | $KohaDates %]</td>
128
                [% END %]
122
                                    <td>[% offset_accountline.timestamp | $KohaDates  with_hours => 1 %]</td>
123
                                    <td>[% offset_accountline.amount | $Price %]</td>
124
                                    <td>[% offset_accountline.amountoutstanding | $Price %]</td>
125
                                    <td>[% PROCESS account_type_description account=offset_accountline %]</td>
126
                                    <td>[% offset_accountline.note | html %]</td>
127
                                    <td>[% IF offset_accountline.manager_id %]<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">[% offset_accountline.manager_id | html %]</a>[% END %]</td>
128
                                    <td>[% ao.created_on | $KohaDates  with_hours => 1 %]</td>
129
                                    <td>[% ao.amount | $Price %]</td>
130
                                    <td>[% PROCESS offset_type_description account_offset=ao %]</td>
131
                                    <td><a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a></td>
132
                                </tr>
133
                            [% END %]
134
                        [% END %]
135
                    </tbody>
136
                </table>
129
            [% ELSE %]
137
            [% ELSE %]
130
                <div class="dialog message">
138
                <div class="dialog message">
131
                    <p>Account line not found.</p>
139
                    [% IF type == 'credit' %]
140
                        Payment not found
141
                    [% ELSIF type == 'debit' %]
142
                        Fee not found
143
                    [% END %]
132
                </div>
144
                </div>
133
            [% END %]
145
            [% END %]
134
        </div>
135
    </div>
136
146
137
    <div class="yui-b">
147
            </main>
138
        [% INCLUDE 'circ-menu.inc' %]
148
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
139
    </div>
149
140
</div>
150
        <div class="col-sm-2 col-sm-pull-10">
151
            <aside>
152
                [% INCLUDE 'circ-menu.inc' %]
153
            </aside>
154
        </div> <!-- /.col-sm-2.col-sm-pull-10 -->
155
    </div> <!-- /.row -->
156
157
158
[% MACRO jsinclude BLOCK %]
159
    [% INCLUDE 'str/members-menu.inc' %]
160
    [% Asset.js("js/members-menu.js") | $raw %]
161
[% END %]
162
141
[% INCLUDE 'intranet-bottom.inc' %]
163
[% INCLUDE 'intranet-bottom.inc' %]
142
- 

Return to bug 21913