Bug 23012: Show the PROCESSING_FOUND account credit type
authorAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 12 Oct 2022 04:11:33 +0000 (04:11 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Oct 2022 20:43:28 +0000 (17:43 -0300)
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Account.pm
api/v1/swagger/definitions/patron_account_credit.yaml
koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc

index 4c13a9a..59a4d20 100644 (file)
@@ -173,6 +173,7 @@ $credit_type can be any of:
   - 'OVERPAYMENT'
   - 'PAYMENT'
   - 'WRITEOFF'
+  - 'PROCESSING_FOUND'
 
 =cut
 
index cd607fd..20e1134 100644 (file)
@@ -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
index 6ba16c5..2cc3f47 100644 (file)
@@ -38,6 +38,7 @@
         [%- CASE 'OVERPAYMENT'  -%]<span>Overpayment refund</span>
         [%- CASE 'REFUND'       -%]<span>Refund</span>
         [%- CASE 'CANCELLATION' -%]<span>Cancelled charge</span>
+        [%- CASE 'PROCESSING_FOUND' -%]<span>Lost item processing fee refund</span>
         [%- CASE                -%]<span>[% credit_type.description | html %]</span>
     [%- END -%]
 [%- END -%]
index c0886be..ccfd877 100644 (file)
@@ -40,6 +40,7 @@
         [%- CASE 'OVERPAYMENT'  -%]<span>Overpayment refund</span>
         [%- CASE 'REFUND'       -%]<span>Refund</span>
         [%- CASE 'CANCELLATION' -%]<span>Cancelled charge</span>
+        [%- CASE 'PROCESSING_FOUND' -%]<span>Lost item processing fee refund</span>
         [%- CASE                -%]<span>[% credit_type.description | html %]</span>
     [%- END -%]
 [%- END -%]