From b3e2d81a6024b4993e41578407a1c2ab54186b7e Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 12 Oct 2022 04:11:33 +0000 Subject: [PATCH] Bug 23012: Show the PROCESSING_FOUND account credit type --- Koha/Account.pm | 1 + api/v1/swagger/definitions/patron_account_credit.yaml | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc | 1 + koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index 4c13a9a07e0..59a4d20179b 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -173,6 +173,7 @@ $credit_type can be any of: - 'OVERPAYMENT' - 'PAYMENT' - 'WRITEOFF' + - 'PROCESSING_FOUND' =cut diff --git a/api/v1/swagger/definitions/patron_account_credit.yaml b/api/v1/swagger/definitions/patron_account_credit.yaml index cd607fdc908..20e1134165a 100644 --- a/api/v1/swagger/definitions/patron_account_credit.yaml +++ b/api/v1/swagger/definitions/patron_account_credit.yaml @@ -3,7 +3,7 @@ type: object properties: credit_type: type: string - description: Type of credit ('CREDIT', 'FORGIVEN', 'LOST_FOUND', 'PAYMENT', 'WRITEOFF' ) + description: Type of credit ('CREDIT', 'FORGIVEN', 'LOST_FOUND', 'PAYMENT', 'WRITEOFF', 'PROCESSING_FOUND' ) amount: type: number minimum: 0 diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc index 6ba16c55d9b..2cc3f4783d2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc @@ -38,6 +38,7 @@ [%- CASE 'OVERPAYMENT' -%]Overpayment refund [%- CASE 'REFUND' -%]Refund [%- CASE 'CANCELLATION' -%]Cancelled charge + [%- CASE 'PROCESSING_FOUND' -%]Lost item processing fee refund [%- CASE -%][% credit_type.description | html %] [%- END -%] [%- END -%] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc index c0886be3deb..ccfd8771668 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc @@ -40,6 +40,7 @@ [%- CASE 'OVERPAYMENT' -%]Overpayment refund [%- CASE 'REFUND' -%]Refund [%- CASE 'CANCELLATION' -%]Cancelled charge + [%- CASE 'PROCESSING_FOUND' -%]Lost item processing fee refund [%- CASE -%][% credit_type.description | html %] [%- END -%] [%- END -%] -- 2.20.1