Bug 23805: Update references to accounttype to credit_type_code
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / accounts.inc
index 8a5c20b..332b350 100644 (file)
@@ -1,7 +1,7 @@
 [%- BLOCK account_type_description -%]
     <span>
-    [%- IF account.accounttype -%]
-        [%- SWITCH account.accounttype -%]
+    [%- IF account.credit_type_code -%]
+        [%- SWITCH account.credit_type_code -%]
             [%- CASE 'Pay'              -%]Payment
             [%- CASE 'W'                -%]Writeoff
             [%- CASE 'FOR'              -%]Forgiven
@@ -9,7 +9,7 @@
             [%- CASE 'WO'               -%]Writeoff
             [%- CASE 'C'                -%]Credit
             [%- CASE 'LOST_RETURN'      -%]Lost item fee refund
-            [%- CASE                    -%][% account.accounttype | html %]
+            [%- CASE                    -%][% account.credit_type.description | html %]
         [%- END -%]
     [%- ELSIF account.debit_type_code -%]
        [%- SWITCH account.debit_type_code -%]