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