Bug 22563: Update lost handling to use accountline.status
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / accounts.inc
1 [%- BLOCK account_type_description -%]
2     [%- SWITCH account.accounttype -%]
3         [%- CASE 'Pay'         -%]<span>Payment
4         [%- CASE 'Pay00'       -%]<span>Payment (cash via SIP2)
5         [%- CASE 'Pay01'       -%]<span>Payment (VISA via SIP2)
6         [%- CASE 'Pay02'       -%]<span>Payment (credit card via SIP2)
7         [%- CASE 'N'           -%]<span>New card
8         [%- CASE 'OVERDUE'     -%]<span>Fine
9         [%- CASE 'A'           -%]<span>Account management fee
10         [%- CASE 'M'           -%]<span>Sundry
11         [%- CASE 'LOST'        -%]<span>Lost item
12         [%- CASE 'W'           -%]<span>Writeoff
13         [%- CASE 'HE'          -%]<span>Hold waiting too long
14         [%- CASE 'Rent'        -%]<span>Rental fee
15         [%- CASE 'FOR'         -%]<span>Forgiven
16         [%- CASE 'PF'          -%]<span>Lost item processing fee
17         [%- CASE 'PAY'         -%]<span>Payment
18         [%- CASE 'WO'          -%]<span>Writeoff
19         [%- CASE 'C'           -%]<span>Credit
20         [%- CASE 'LOST_RETURN' -%]<span>Lost item fee refund
21         [%- CASE 'Res'         -%]<span>Hold fee
22         [%- CASE               -%]<span>[% account.accounttype | html %]
23     [%- END -%]
24     [%- PROCESS account_status_description account=account -%]</span>
25 [%- END -%]
26
27 [%- BLOCK offset_type_description -%]
28     [%- SWITCH account_offset.type -%]
29         [%- CASE 'Credit Applied' -%]<span>Credit applied</span>
30         [%- CASE 'Payment'        -%]<span>Payment</span>
31         [%- CASE 'Manual Credit'  -%]<span>Manual credit</span>
32         [%- CASE 'Manual Debit'   -%]<span>Manual invoice</span>
33         [%- CASE 'Lost Item'      -%]<span>Lost item returned</span>
34         [%- CASE 'Writeoff'       -%]<span>Writeoff</span>
35         [%- CASE 'Void Payment'   -%]<span>Void payment</span>
36         [%- CASE                  -%][% account_offset.type | html %]
37     [%- END -%]
38 [%- END -%]
39
40 [%- BLOCK account_status_description -%]
41     [%- SWITCH account.status -%]
42         [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
43         [%- CASE 'RETURNED'   -%]<span> (Returned)</span>
44         [%- CASE 'REPLACED'   -%]<span> (Replaced)</span>
45         [%- CASE 'FORGIVEN'   -%]<span> (Forgiven)</span>
46         [%- CASE 'VOID'       -%]<span> (Voided)</span>
47         [%- CASE              -%]
48     [%- END -%]
49 [%- END -%]