Bug 22521: Update UI to use accountlines.status
[koha-equinox.git] / koha-tmpl / intranet-tmpl / prog / en / includes / accounts.inc
index 504d1ab..ee1a90f 100644 (file)
@@ -1,29 +1,28 @@
 [%- BLOCK account_type_description -%]
     [%- SWITCH account.accounttype -%]
-        [%- CASE 'Pay'   -%]<span>Payment, thanks</span>
-        [%- CASE 'Pay00' -%]<span>Payment, thanks (cash via SIP2)</span>
-        [%- CASE 'Pay01' -%]<span>Payment, thanks (VISA via SIP2)</span>
-        [%- CASE 'Pay02' -%]<span>Payment, thanks (credit card via SIP2)</span>
-        [%- CASE 'VOID'  -%]<span>Voided</span>
-        [%- CASE 'N'     -%]<span>New card</span>
-        [%- CASE 'F'     -%]<span>Fine</span>
-        [%- CASE 'A'     -%]<span>Account management fee</span>
-        [%- CASE 'M'     -%]<span>Sundry</span>
-        [%- CASE 'L'     -%]<span>Lost item</span>
-        [%- CASE 'W'     -%]<span>Writeoff</span>
-        [%- CASE 'FU'    -%]<span>Accruing fine</span>
-        [%- CASE 'HE'    -%]<span>Hold waiting too long</span>
-        [%- CASE 'Rent'  -%]<span>Rental fee</span>
-        [%- CASE 'FOR'   -%]<span>Forgiven</span>
+        [%- CASE 'Pay'     -%]<span>Payment, thanks</span>
+        [%- CASE 'Pay00'   -%]<span>Payment, thanks (cash via SIP2)</span>
+        [%- CASE 'Pay01'   -%]<span>Payment, thanks (VISA via SIP2)</span>
+        [%- CASE 'Pay02'   -%]<span>Payment, thanks (credit card via SIP2)</span>
+        [%- CASE 'VOID'    -%]<span>Voided</span>
+        [%- CASE 'N'       -%]<span>New card</span>
+        [%- CASE 'OVERDUE' -%]<span>Fine[%- PROCESS account_status_description account=account -%]</span>
+        [%- CASE 'A'       -%]<span>Account management fee</span>
+        [%- CASE 'M'       -%]<span>Sundry</span>
+        [%- CASE 'L'       -%]<span>Lost item</span>
+        [%- CASE 'W'       -%]<span>Writeoff</span>
+        [%- CASE 'HE'      -%]<span>Hold waiting too long</span>
+        [%- CASE 'Rent'    -%]<span>Rental fee</span>
+        [%- CASE 'FOR'     -%]<span>Forgiven</span>
         [%- CASE 'FFOR'  -%]<span>Fine forgiven</span>
-        [%- CASE 'LR'    -%]<span>Lost item fee refund</span>
+        [%- CASE 'LR'      -%]<span>Lost item fee refund</span>
         [%- CASE 'PF'    -%]<span>Lost item processing fee</span>
-        [%- CASE 'PAY'   -%]<span>Payment</span>
-        [%- CASE 'WO'    -%]<span>Writeoff</span>
-        [%- CASE 'C'     -%]<span>Credit</span>
-        [%- CASE 'CR'    -%]<span>Credit</span>
-        [%- CASE 'Res'   -%]<span>Hold fee</span>
-        [%- CASE         -%][% account.accounttype | html %]
+        [%- CASE 'PAY'     -%]<span>Payment</span>
+        [%- CASE 'WO'      -%]<span>Writeoff</span>
+        [%- CASE 'C'       -%]<span>Credit</span>
+        [%- CASE 'CR'      -%]<span>Credit</span>
+        [%- CASE 'Res'     -%]<span>Hold fee</span>
+        [%- CASE           -%][% account.accounttype | html %]
     [%- END -%]
 [%- END -%]
 
         [%- CASE                  -%][% account_offset.type | html %]
     [%- END -%]
 [%- END -%]
+
+[%- BLOCK account_status_description -%]
+    [%- SWITCH account.status -%]
+        [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
+        [%- CASE 'RETURNED'   -%]<span> (Returned)</span>
+        [%- CASE 'FORGIVEN'   -%]<span> (Forgiven)</span>
+        [%- CASE              -%]
+    [%- END -%]
+[%- END -%]