Bugzilla – Attachment 118204 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: Check for specific template then fallback
Bug-26689-Check-for-specific-template-then-fallbac.patch (text/plain), 1.43 KB, created by
Martin Renvoize (ashimema)
on 2021-03-12 14:40:51 UTC
(
hide
)
Description:
Bug 26689: Check for specific template then fallback
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-03-12 14:40:51 UTC
Size:
1.43 KB
patch
obsolete
>From a590994e567e74988481181bf9b0300e772aaae0 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 12 Mar 2021 14:38:31 +0000 >Subject: [PATCH] Bug 26689: Check for specific template then fallback > >This patch adds a check for a more specific ACCOUNT_CREDIT template >(named to match the credit_type_code of the credit line) prior to >falling back to the ACCOUNT_CREDIT template. >--- > members/printfeercpt.pl | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/members/printfeercpt.pl b/members/printfeercpt.pl >index 2e3dff7b51..afa3cd640c 100755 >--- a/members/printfeercpt.pl >+++ b/members/printfeercpt.pl >@@ -56,6 +56,22 @@ output_and_exit_if_error( > ); > > my $letter = C4::Letters::GetPreparedLetter( >+ module => 'circulation', >+ letter_code => $credit->credit_type_code, >+ branchcode => C4::Context::mybranch, >+ message_transport_type => 'print', >+ lang => $patron->lang, >+ tables => { >+ credits => $credit_id, >+ borrowers => $patron->borrowernumber >+ }, >+ substitute => { >+ tendered => scalar $input->param('tendered'), >+ change => scalar $input->param('change') >+ } >+); >+ >+$letter //= C4::Letters::GetPreparedLetter( > module => 'circulation', > letter_code => 'ACCOUNT_CREDIT', > branchcode => C4::Context::mybranch, >-- >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