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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt (-15 / +26 lines)
Lines 2-7 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE Price %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Print receipt for [% patron.cardnumber %]</title>
8
<title>Print receipt for [% patron.cardnumber %]</title>
Lines 35-41 Link Here
35
 <tr>
36
 <tr>
36
    <th colspan=4 >
37
    <th colspan=4 >
37
        Received with thanks from  [% patron.firstname %] [% patron.surname %] <br />
38
        Received with thanks from  [% patron.firstname %] [% patron.surname %] <br />
38
        Card number : [% patron.cardnumber %]<br />
39
        Card number: [% patron.cardnumber %]<br />
39
	</th>
40
	</th>
40
 </tr>
41
 </tr>
41
  <tr>
42
  <tr>
Lines 50-78 Link Here
50
      <td>[% account.date | $KohaDates %]</td>
51
      <td>[% account.date | $KohaDates %]</td>
51
      <td>
52
      <td>
52
        [% SWITCH account.accounttype %]
53
        [% SWITCH account.accounttype %]
53
          [% CASE 'Pay' %]Payment, thanks
54
            [% CASE 'Pay' %]Payment, thanks
54
          [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
55
            [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
55
          [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
56
            [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
56
          [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
57
            [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
57
          [% CASE 'N' %]New Card
58
            [% CASE 'N' %]New card
58
          [% CASE 'F' %]Fine
59
            [% CASE 'F' %]Fine
59
          [% CASE 'A' %]Account management fee
60
            [% CASE 'A' %]Account management fee
60
          [% CASE 'M' %]Sundry
61
            [% CASE 'M' %]Sundry
61
          [% CASE 'L' %]Lost Item
62
            [% CASE 'L' %]Lost item
62
          [% CASE 'W' %]Writeoff
63
            [% CASE 'W' %]Writeoff
63
          [% CASE %][% account.accounttype %]
64
            [% CASE 'FU' %]Accruing fine
65
            [% CASE 'HE' %]Hold waiting too long
66
            [% CASE 'Rent' %]Rental fee
67
            [% CASE 'FOR' %]Forgiven
68
            [% CASE 'LR' %]Lost item fee refund
69
            [% CASE 'PF' %]Processing fee
70
            [% CASE 'PAY' %]Payment
71
            [% CASE 'WO' %]Writeoff
72
            [% CASE 'C' %]Credit
73
            [% CASE 'CR' %]Credit
74
            [% CASE %][% account.accounttype %]
64
        [%- END -%]
75
        [%- END -%]
65
        [%- IF account.description %], [% account.description %][% END %]
76
        [%- IF account.description %], [% account.description %][% END %]
66
      </td>
77
      </td>
67
      <td>[% account.note %]</td>
78
      <td>[% account.note %]</td>
68
      [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
79
      [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price  %]</td>
69
    </tr>
80
    </tr>
70
81
71
  [% END %]
82
  [% END %]
72
<tfoot>
83
<tfoot>
73
  <tr>
84
  <tr>
74
    <td colspan="3">Total outstanding dues as on date : </td>
85
    <td colspan="3">Total outstanding dues as on date: </td>
75
    [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
86
    [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price  %]</td>
76
  </tr>
87
  </tr>
77
  </tfoot>
88
  </tfoot>
78
</table>
89
</table>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt (-14 / +25 lines)
Lines 2-7 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE Branches %]
3
[% USE Branches %]
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE Price %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Print receipt for [% patron.cardnumber %]</title>
8
<title>Print receipt for [% patron.cardnumber %]</title>
Lines 50-79 Link Here
50
      <td>[% account.date | $KohaDates%]</td>
51
      <td>[% account.date | $KohaDates%]</td>
51
       <td>
52
       <td>
52
        [% SWITCH account.accounttype %]
53
        [% SWITCH account.accounttype %]
53
          [% CASE 'Pay' %]Payment, thanks
54
            [% CASE 'Pay' %]Payment, thanks
54
          [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
55
            [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
55
          [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
56
            [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
56
          [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
57
            [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
57
          [% CASE 'N' %]New Card
58
            [% CASE 'N' %]New card
58
          [% CASE 'F' %]Fine
59
            [% CASE 'F' %]Fine
59
          [% CASE 'A' %]Account management fee
60
            [% CASE 'A' %]Account management fee
60
          [% CASE 'M' %]Sundry
61
            [% CASE 'M' %]Sundry
61
          [% CASE 'L' %]Lost Item
62
            [% CASE 'L' %]Lost item
62
          [% CASE 'W' %]Writeoff
63
            [% CASE 'W' %]Writeoff
63
          [% CASE %][% account.accounttype %]
64
            [% CASE 'FU' %]Accruing fine
65
            [% CASE 'HE' %]Hold waiting too long
66
            [% CASE 'Rent' %]Rental fee
67
            [% CASE 'FOR' %]Forgiven
68
            [% CASE 'LR' %]Lost item fee refund
69
            [% CASE 'PF' %]Processing fee
70
            [% CASE 'PAY' %]Payment
71
            [% CASE 'WO' %]Writeoff
72
            [% CASE 'C' %]Credit
73
            [% CASE 'CR' %]Credit
74
            [% CASE %][% account.accounttype %]
64
        [%- END -%]
75
        [%- END -%]
65
        [%- IF account.description %], [% account.description %][% END %]
76
        [%- IF account.description %], [% account.description %][% END %]
66
      </td>
77
      </td>
67
      <td>[% account.note %]</td>
78
      <td>[% account.note %]</td>
68
      [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
79
      [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
69
      [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
80
      [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding | $Price %]</td>
70
    </tr>
81
    </tr>
71
82
72
  [% END %]
83
  [% END %]
73
<tfoot>
84
<tfoot>
74
  <tr>
85
  <tr>
75
    <td colspan="4">Total outstanding dues as on date: </td>
86
    <td colspan="4">Total outstanding dues as on date: </td>
76
    [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
87
    [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
77
  </tr>
88
  </tr>
78
  </tfoot>
89
  </tfoot>
79
</table>
90
</table>
(-)a/members/printfeercpt.pl (-5 / +3 lines)
Lines 84-92 my %row = ( Link Here
84
    'amountcredit'            => $accountline->{'amountcredit'},
84
    'amountcredit'            => $accountline->{'amountcredit'},
85
    'amountoutstandingcredit' => $accountline->{'amountoutstandingcredit'},
85
    'amountoutstandingcredit' => $accountline->{'amountoutstandingcredit'},
86
    'description'             => $accountline->{'description'},
86
    'description'             => $accountline->{'description'},
87
    'amount'                  => sprintf( "%.2f", $accountline->{'amount'} ),
87
    'amount'                  => $accountline->{'amount'},
88
    'amountoutstanding' =>
88
    'amountoutstanding'       => $accountline->{'amountoutstanding'},
89
      sprintf( "%.2f", $accountline->{'amountoutstanding'} ),
90
    'accountno' => $accountline->{'accountno'},
89
    'accountno' => $accountline->{'accountno'},
91
    accounttype => $accountline->{accounttype},
90
    accounttype => $accountline->{accounttype},
92
    'note'      => $accountline->{'note'},
91
    'note'      => $accountline->{'note'},
Lines 96-102 my %row = ( Link Here
96
$template->param(
95
$template->param(
97
    patron               => $patron,
96
    patron               => $patron,
98
    finesview           => 1,
97
    finesview           => 1,
99
    total               => sprintf("%.2f",$total),
98
    total               => $total,
100
    totalcredit         => $totalcredit,
99
    totalcredit         => $totalcredit,
101
    accounts            => [$accountline], # FIXME There is always only 1 row!
100
    accounts            => [$accountline], # FIXME There is always only 1 row!
102
);
101
);
103
- 

Return to bug 21167