From bdaefd6745e573e42547dc80669d766ba4d7600a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 29 Jun 2022 17:26:30 +0100 Subject: [PATCH] Bug 26689: Prepend letter codes. This patch prepends the credit_type_code and debit_type_code with CREDIT_ and DEBIT_ respectively when doing a lookup on the notice letter code. Test plan 1) As previous patches, however instead of just naming your notice to match the credit_type_code or debit_type_code use CREDIT_credit_type_code and DEBIT_debit_type_code respectively. Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 87aa05f9deb7fa09f059d53b422b89c8411e0c84) Signed-off-by: Lucas Gass (cherry picked from commit 6d9fd8160a6e0e9976babcc2cd01f58baa4a325e) Signed-off-by: Arthur Suzuki --- members/printfeercpt.pl | 2 +- members/printinvoice.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/members/printfeercpt.pl b/members/printfeercpt.pl index c24000227c..6c695e469a 100755 --- a/members/printfeercpt.pl +++ b/members/printfeercpt.pl @@ -57,7 +57,7 @@ output_and_exit_if_error( my $letter = C4::Letters::GetPreparedLetter( module => 'circulation', - letter_code => $credit->credit_type_code, + letter_code => 'CREDIT_' . $credit->credit_type_code, branchcode => C4::Context::mybranch, message_transport_type => 'print', lang => $patron->lang, diff --git a/members/printinvoice.pl b/members/printinvoice.pl index 54b3e1e06e..7d591c44d2 100755 --- a/members/printinvoice.pl +++ b/members/printinvoice.pl @@ -57,7 +57,7 @@ output_and_exit_if_error( my $letter = C4::Letters::GetPreparedLetter( module => 'circulation', - letter_code => $debit->debit_type_code, + letter_code => 'DEBIT_' . $debit->debit_type_code, branchcode => C4::Context::mybranch, message_transport_type => 'print', lang => $patron->lang, -- 2.39.5