Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc
Katrin Fischer c76533c5a1
Bug 26403: (QA follow-up) Add missing debit and credit types to includes
This adds the missing debit and credit types to the includes, namely:
DISCOUNT, PURCHASE, PAYOUT, and VOID.

I sorted them as they appear in the GUI (alphabetically) so it's a little
easier to spot missing ones.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-10 15:26:15 -03:00

63 lines
3.1 KiB
PHP

[%- BLOCK account_type_description -%]
<span>
[%- IF account.credit_type_code -%]
[%- PROCESS credit_type_description credit_type_code = account.credit_type_code -%]
[%- ELSIF account.debit_type_code -%]
[%- PROCESS debit_type_description debit_type_code = account.debit_type_code -%]
[%- END -%]
[%- PROCESS account_status_description account=account -%]
</span>
[%- END -%]
[%- BLOCK debit_type_description -%]
[%- SWITCH debit_type_code -%]
[%- CASE 'ACCOUNT' -%]<span>Account creation fee</span>
[%- CASE 'ACCOUNT_RENEW' -%]<span>Account renewal fee</span>
[%- CASE 'ARTICLE_REQUEST' -%]<span>Article request fee</span>
[%- CASE 'LOST' -%]<span>Lost item</span>
[%- CASE 'MANUAL' -%]<span>Manual fee</span>
[%- CASE 'NEW_CARD' -%]<span>New card</span>
[%- CASE 'OVERDUE' -%]<span>Fine</span>
[%- CASE 'PROCESSING' -%]<span>Lost item processing fee</span>
[%- CASE 'RENT' -%]<span>Rental fee</span>
[%- CASE 'RENT_DAILY' -%]<span>Daily rental fee</span>
[%- CASE 'RENT_RENEW' -%]<span>Renewal of rental item</span>
[%- CASE 'RENT_DAILY_RENEW' -%]<span>Renewal of daily rental item</span>
[%- CASE 'RESERVE' -%]<span>Hold fee</span>
[%- CASE 'RESERVE_EXPIRED' -%]<span>Hold waiting too long</span>
[%- CASE 'PAYOUT' -%]<span>Payment from library to patron</span>
[%- CASE 'VOID' -%]<span>Credit has been voided</span>
[%- CASE -%]<span>[% debit_type.description | html %]</span>
[%- END -%]
[%- END -%]
[%- BLOCK credit_type_description -%]
[%- SWITCH credit_type_code -%]
[%- CASE 'CANCELLATION' -%]<span>Cancelled charge</span>
[%- CASE 'CREDIT' -%]<span>Credit</span>
[%- CASE 'DISCOUNT' -%]<span>Discount</span>
[%- CASE 'FORGIVEN' -%]<span>Forgiven</span>
[%- CASE 'LOST_FOUND' -%]<span>Lost item fee refund</span>
[%- CASE 'OVERPAYMENT' -%]<span>Overpayment refund</span>
[%- CASE 'PAYMENT' -%]<span>Payment</span>
[%- CASE 'PROCESSING_FOUND' -%]<span>Lost item processing fee refund</span>
[%- CASE 'PURCHASE' -%]<span>Purchase</span>
[%- CASE 'REFUND' -%]<span>Refund</span>
[%- CASE 'WRITEOFF' -%]<span>Writeoff</span>
[%- CASE -%]<span>[% credit_type.description | html %]</span>
[%- END -%]
[%- END -%]
[%- BLOCK account_status_description -%]
[%- SWITCH account.status -%]
[%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
[%- CASE 'RETURNED' -%]<span> (Returned)</span>
[%- CASE 'REPLACED' -%]<span> (Replaced)</span>
[%- CASE 'REFUNDED' -%]<span> (Refunded)</span>
[%- CASE 'FORGIVEN' -%]<span> (Forgiven)</span>
[%- CASE 'VOID' -%]<span> (Voided)</span>
[%- CASE 'LOST' -%]<span> (Lost)</span>
[%- CASE 'CANCELLED' -%]<span> (Cancelled)</span>
[%- CASE -%]
[%- END -%]
[%- END -%]