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 <tomascohen@theke.io>
(cherry picked from commit 87aa05f9de)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 6d9fd8160a)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
Martin Renvoize 2022-06-29 17:26:30 +01:00 committed by Arthur Suzuki
parent e4f6538094
commit bdaefd6745
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,