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 commit87aa05f9de) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit6d9fd8160a) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
e4f6538094
commit
bdaefd6745
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue