Bug 16522: (follow-up) MARC display templates and get_marc_host fixes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / accounts.inc
1 [%- BLOCK account_type_description -%]
2     [%- IF account.credit_type_code -%]
3         [%- PROCESS credit_type_description credit_type = account.credit_type -%]
4     [%- ELSIF account.debit_type_code -%]
5         [%- PROCESS debit_type_description debit_type = account.debit_type -%]
6     [%- END -%]
7     [%- PROCESS account_status_description account=account -%]
8 [%- END -%]
9
10 [%- BLOCK debit_type_description -%]
11     [%- SWITCH debit_type.code -%]
12         [%- CASE 'ACCOUNT'          -%]<span>Account creation fee</span>
13         [%- CASE 'ACCOUNT_RENEW'    -%]<span>Account renewal fee</span>
14         [%- CASE 'ARTICLE_REQUEST'  -%]<span>Article request fee</span>
15         [%- CASE 'LOST'             -%]<span>Lost item</span>
16         [%- CASE 'MANUAL'           -%]<span>Manual fee</span>
17         [%- CASE 'NEW_CARD'         -%]<span>New card</span>
18         [%- CASE 'OVERDUE'          -%]<span>Fine</span>
19         [%- CASE 'PROCESSING'       -%]<span>Lost item processing fee</span>
20         [%- CASE 'RENT'             -%]<span>Rental fee</span>
21         [%- CASE 'RENT_DAILY'       -%]<span>Daily rental fee</span>
22         [%- CASE 'RENT_RENEW'       -%]<span>Renewal of rental item</span>
23         [%- CASE 'RENT_DAILY_RENEW' -%]<span>Renewal of daily rental item</span>
24         [%- CASE 'RESERVE'          -%]<span>Hold fee</span>
25         [%- CASE 'RESERVE_EXPIRED'  -%]<span>Hold waiting too long</span>
26         [%- CASE 'Payout'           -%]<span>Payout</span>
27         [%- CASE                    -%]<span>[% debit_type.description | html %]</span>
28     [%- END -%]
29 [%- END -%]
30
31 [%- BLOCK credit_type_description -%]
32     [%- SWITCH credit_type.code -%]
33         [%- CASE 'PAYMENT'      -%]<span>Payment</span>
34         [%- CASE 'WRITEOFF'     -%]<span>Writeoff</span>
35         [%- CASE 'FORGIVEN'     -%]<span>Forgiven</span>
36         [%- CASE 'CREDIT'       -%]<span>Credit</span>
37         [%- CASE 'LOST_FOUND'   -%]<span>Lost item fee refund</span>
38         [%- CASE 'OVERPAYMENT'  -%]<span>Overpayment refund</span>
39         [%- CASE 'REFUND'       -%]<span>Refund</span>
40         [%- CASE 'CANCELLATION' -%]<span>Cancelled charge</span>
41         [%- CASE 'PROCESSING_FOUND' -%]<span>Lost item processing fee refund</span>
42         [%- CASE                -%]<span>[% credit_type.description | html %]</span>
43     [%- END -%]
44 [%- END -%]
45
46 [%- BLOCK account_status_description -%]
47     [%- SWITCH account.status -%]
48         [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
49         [%- CASE 'RETURNED'   -%]<span> (Returned)</span>
50         [%- CASE 'REPLACED'   -%]<span> (Replaced)</span>
51         [%- CASE 'REFUNDED'   -%]<span> (Refunded)</span>
52         [%- CASE 'FORGIVEN'   -%]<span> (Forgiven)</span>
53         [%- CASE 'VOID'       -%]<span> (Voided)</span>
54         [%- CASE 'LOST'       -%]<span> (Lost)</span>
55         [%- CASE 'CANCELLED'  -%]<span> (Cancelled)</span>
56         [%- CASE              -%]
57     [%- END -%]
58 [%- END -%]