18fa30904424e20a49c40848f1f16718b1a295e3
[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         [%- SWITCH account.credit_type_code -%]
5             [%- CASE 'Pay'              -%]Payment
6             [%- CASE 'W'                -%]Writeoff
7             [%- CASE 'FORGIVEN'         -%]Forgiven
8             [%- CASE 'PAY'              -%]Payment
9             [%- CASE 'WO'               -%]Writeoff
10             [%- CASE 'CREDIT'           -%]Credit
11             [%- CASE 'LOST_RETURN'      -%]Lost item fee refund
12             [%- CASE                    -%][% account.credit_type.description | html %]
13         [%- END -%]
14     [%- ELSIF account.debit_type_code -%]
15        [%- SWITCH account.debit_type_code -%]
16            [%- CASE 'ACCOUNT'          -%]Account creation fee
17            [%- CASE 'ACCOUNT_RENEW'    -%]Account renewal fee
18            [%- CASE 'LOST'             -%]Lost item
19            [%- CASE 'MANUAL'           -%]Manual fee
20            [%- CASE 'NEW_CARD'         -%]New card
21            [%- CASE 'OVERDUE'          -%]Fine
22            [%- CASE 'PROCESSING'       -%]Lost item processing fee
23            [%- CASE 'RENT'             -%]Rental fee
24            [%- CASE 'RENT_DAILY'       -%]Daily rental fee
25            [%- CASE 'RENT_RENEW'       -%]Renewal of rental item
26            [%- CASE 'RENT_DAILY_RENEW' -%]Rewewal of daily rental item
27            [%- CASE 'RESERVE'          -%]Hold fee
28            [%- CASE 'RESERVE_EXPIRED'  -%]Hold waiting too long
29            [%- CASE                    -%][% account.debit_type.description | html %]
30        [%- END -%]
31     [%- END -%]
32     [%- PROCESS account_status_description account=account -%]
33     </span>
34 [%- END -%]
35
36 [%- BLOCK offset_type_description -%]
37     [%- SWITCH account_offset.type -%]
38         [%- CASE 'Credit Applied' -%]<span>Credit applied</span>
39         [%- CASE 'Payment'        -%]<span>Payment</span>
40         [%- CASE 'Manual Credit'  -%]<span>Manual credit</span>
41         [%- CASE 'Manual Debit'   -%]<span>Manual invoice</span>
42         [%- CASE 'Lost Item'      -%]<span>Lost item returned</span>
43         [%- CASE 'Writeoff'       -%]<span>Writeoff</span>
44         [%- CASE 'Void Payment'   -%]<span>Void payment</span>
45         [%- CASE                  -%][% account_offset.type | html %]
46     [%- END -%]
47 [%- END -%]
48
49 [%- BLOCK account_status_description -%]
50     [%- SWITCH account.status -%]
51         [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
52         [%- CASE 'RETURNED'   -%]<span> (Returned)</span>
53         [%- CASE 'REPLACED'   -%]<span> (Replaced)</span>
54         [%- CASE 'FORGIVEN'   -%]<span> (Forgiven)</span>
55         [%- CASE 'VOID'       -%]<span> (Voided)</span>
56         [%- CASE 'LOST'       -%]<span> (Lost)</span>
57         [%- CASE              -%]
58     [%- END -%]
59 [%- END -%]