]> git.koha-community.org Git - koha.git/commit
Bug 26689: Check for specific template then fallback - printfeercpt
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 12 Mar 2021 14:38:31 +0000 (14:38 +0000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 14 Sep 2022 09:48:14 +0000 (11:48 +0200)
commit8463b63d9bb8ea3ee5602e21b5807650191619b0
tree360529fe32b91d92edbf4e349bcd5e5da237d3b2
parent23ba5b0de0d77d02e304a7f21ba043086a108e9b
Bug 26689: Check for specific template then fallback - printfeercpt

This patch adds a check for a more specific ACCOUNT_CREDIT template
(named to match the credit_type_code of the credit line) prior to
falling back to the ACCOUNT_CREDIT template.

Test plan
1/ On a patrons account page use the print option on a series of credit
lines with differing credit types (Payment, Lost Item Return, Writeoff)
2/ Note that the same template 'ACCOUNT_CREDIT' is used for all types
3/ Apply the patch
4/ Run step 1 again and note all still print using ACCOUNT_CREDIT
5/ Add a new notice template under the 'circulation' module with a code
that matches one of your account credit types (PAYMENT, WRITEOFF,
LOST_FOUND)
6/ Run step 1 again and note that where you have added a specific notice
for that credit type it has been used.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 422ab472836cfcd0dd4197173de1213c06375d42)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 32091958c78bc5d2e8550bac896b78be47833f90)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
members/printfeercpt.pl