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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-4 / +5 lines)
Lines 1-6 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% USE ColumnsSettings %]
3
[% USE ColumnsSettings %]
4
[% USE Price %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
6
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
Lines 108-115 $(document).ready(function() { Link Here
108
        [%- IF account.description %], [% account.description %][% END %]
109
        [%- IF account.description %], [% account.description %][% END %]
109
        &nbsp;[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% account.title |html %]</a>[% END %]</td>
110
        &nbsp;[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">[% account.title |html %]</a>[% END %]</td>
110
      <td>[% account.note | html_line_break %]</td>
111
      <td>[% account.note | html_line_break %]</td>
111
      [% IF ( account.amountcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amount %]</td>
112
      [% IF ( account.amountcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amount | $Price %]</td>
112
      [% IF ( account.amountoutstandingcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding %]</td>
113
      [% IF ( account.amountoutstandingcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding | $Price %]</td>
113
      <td class="actions">
114
      <td class="actions">
114
        [% IF ( account.payment ) %]
115
        [% IF ( account.payment ) %]
115
          <a target="_blank" href="printfeercpt.pl?action=print&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print</a>
116
          <a target="_blank" href="printfeercpt.pl?action=print&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print</a>
Lines 131-139 $(document).ready(function() { Link Here
131
  <tr>
132
  <tr>
132
    <td colspan="4">Total due</td>
133
    <td colspan="4">Total due</td>
133
    [% IF ( totalcredit ) %]
134
    [% IF ( totalcredit ) %]
134
        <td class="credit" style="text-align: right;">[% total %]</td>
135
        <td class="credit" style="text-align: right;">[% total | $Price %]</td>
135
    [% ELSE %]
136
    [% ELSE %]
136
       <td class="debit"style="text-align: right;">[% total %]</td>
137
       <td class="debit"style="text-align: right;">[% total | $Price %]</td>
137
    [% END %]
138
    [% END %]
138
    <td></td>
139
    <td></td>
139
  </tr>
140
  </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt (-6 / +6 lines)
Lines 1-6 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
3
[% USE Branches %]
3
[% USE Branches %]
4
[% USE Price %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Patrons &rsaquo; Pay Fines for  [% borrower.firstname %] [% borrower.surname %]</title>
6
<title>Koha &rsaquo; Patrons &rsaquo; Pay Fines for  [% borrower.firstname %] [% borrower.surname %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
Lines 19-25 function enableCheckboxActions(){ Link Here
19
    $(document).ready(function(){
20
    $(document).ready(function(){
20
 $('#pay-fines-form').preventDoubleFormSubmit();
21
 $('#pay-fines-form').preventDoubleFormSubmit();
21
        $("#woall").click(function(event){
22
        $("#woall").click(function(event){
22
            var msg = _("Are you sure you want to write off %s in outstanding fines? This cannot be undone!").format( "[% total | format('%.2f') %]" );
23
            var msg = _("Are you sure you want to write off %s in outstanding fines? This cannot be undone!").format( "[% total | $Price %]" );
23
            var answer = confirm(msg);
24
            var answer = confirm(msg);
24
                if (!answer){
25
                if (!answer){
25
                    event.preventDefault();
26
                    event.preventDefault();
Lines 87-93 function enableCheckboxActions(){ Link Here
87
<tfoot>
88
<tfoot>
88
<tr>
89
<tr>
89
    <td class="total" colspan="8">Total due:</td>
90
    <td class="total" colspan="8">Total due:</td>
90
    <td style="text-align: right;">[% total | format('%.2f') %]</td>
91
    <td style="text-align: right;">[% total | $Price %]</td>
91
</tr>
92
</tr>
92
</tfoot>
93
</tfoot>
93
<tbody>
94
<tbody>
Lines 145-159 function enableCheckboxActions(){ Link Here
145
    <td>[% line.accounttype %]</td>
146
    <td>[% line.accounttype %]</td>
146
    <td>[% line.notify_id %]</td>
147
    <td>[% line.notify_id %]</td>
147
    <td>[% line.notify_level %]</td>
148
    <td>[% line.notify_level %]</td>
148
    <td class="debit" style="text-align: right;">[% line.amount | format('%.2f') %]</td>
149
    <td class="debit" style="text-align: right;">[% line.amount | $Price %]</td>
149
    <td class="debit" style="text-align: right;">[% line.amountoutstanding | format('%.2f') %]</td>
150
    <td class="debit" style="text-align: right;">[% line.amountoutstanding | $Price %]</td>
150
</tr>
151
</tr>
151
[% END %]
152
[% END %]
152
[% IF ( account_grp.total ) %]
153
[% IF ( account_grp.total ) %]
153
<tr>
154
<tr>
154
155
155
    <td class="total" colspan="8" style="text-align: right;">Sub total:</td>
156
    <td class="total" colspan="8" style="text-align: right;">Sub total:</td>
156
    <td style="text-align: right;">[% account_grp.total | format('%.2f') %]</td>
157
    <td style="text-align: right;">[% account_grp.total | $Price %]</td>
157
</tr>
158
</tr>
158
[% END %]
159
[% END %]
159
[% END %]
160
[% END %]
160
- 

Return to bug 18263