Bugzilla – Attachment 136744 Details for
Bug 26689
Monetary accounts notices should be definable at the credit_type/debit_type level
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26689: Prepend letter codes.
Bug-26689-Prepend-letter-codes.patch (text/plain), 1.77 KB, created by
Martin Renvoize (ashimema)
on 2022-06-29 16:29:04 UTC
(
hide
)
Description:
Bug 26689: Prepend letter codes.
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-06-29 16:29:04 UTC
Size:
1.77 KB
patch
obsolete
>From 5c5180ceea33aec657af433f2e6bb062a5ba8fe2 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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. >--- > 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.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26689
:
112081
|
118204
|
118211
|
118212
|
119572
|
119573
|
119574
|
119575
|
135113
|
135114
|
135685
|
135686
| 136744