Bug 28937: Use Flatpickr on circulation and patron pages
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / accounts.inc
1 [%- BLOCK account_type_description -%]
2     <span>
3     [%- IF account.credit_type_code -%]
4         [%- PROCESS credit_type_description credit_type = account.credit_type -%]
5     [%- ELSIF account.debit_type_code -%]
6         [%- PROCESS debit_type_description debit_type = account.debit_type -%]
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 'LOST'             -%]Lost item
17         [%- CASE 'MANUAL'           -%]Manual fee
18         [%- CASE 'NEW_CARD'         -%]New card
19         [%- CASE 'OVERDUE'          -%]Fine
20         [%- CASE 'PROCESSING'       -%]Lost item processing fee
21         [%- CASE 'RENT'             -%]Rental fee
22         [%- CASE 'RENT_DAILY'       -%]Daily rental fee
23         [%- CASE 'RENT_RENEW'       -%]Renewal of rental item
24         [%- CASE 'RENT_DAILY_RENEW' -%]Renewal of daily rental item
25         [%- CASE 'RESERVE'          -%]Hold fee
26         [%- CASE 'RESERVE_EXPIRED'  -%]Hold waiting too long
27         [%- CASE 'Payout'           -%]Payout
28         [%- CASE                    -%][% debit_type.description | html %]
29     [%- END -%]
30 [%- END -%]
31
32 [%- BLOCK credit_type_description -%]
33     [%- SWITCH credit_type.code -%]
34         [%- CASE 'PAYMENT'      -%]Payment
35         [%- CASE 'WRITEOFF'     -%]Writeoff
36         [%- CASE 'FORGIVEN'     -%]Forgiven
37         [%- CASE 'CREDIT'       -%]Credit
38         [%- CASE 'LOST_FOUND'   -%]Lost item fee refund
39         [%- CASE 'OVERPAYMENT'  -%]Overpayment refund
40         [%- CASE 'REFUND'       -%]Refund
41         [%- CASE 'CANCELLATION' -%]Cancelled charge
42         [%- CASE                -%][% credit_type.description | html %]
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 -%]