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

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

Test plan
1/ On a patrons account page use the print option on a series of debit
lines with differing credit types (Overdue, Payout)
2/ Note that the same template 'ACCOUNT_DEBIT' is used for all types
3/ Apply the patch
4/ Run step 1 again and note all still print using ACCOUNT_DEBIT
5/ Add a new notice template under the 'circulation' module with a code
that matches one of your account debit types (OVERDUE, PAYOUT)
6/ Run step 1 again and note that where you have added a specific notice
for that debit 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 8e46612d7c5dfc8d0faff009ef9f86198bdd0f83)

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