Bugzilla – Attachment 35831 Details for
Bug 13697
Syspref to not add a fee when a patron changes to a category with enrolment fee
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Option to don't add a fee, if the patron changes to a category with enrolment fee
0001-Bug-13697-Option-to-do-not-add-a-fee-if-the-patron-c.patch (text/plain), 1.82 KB, created by
Christophe Croullebois
on 2015-02-11 14:10:01 UTC
(
hide
)
Description:
Option to don't add a fee, if the patron changes to a category with enrolment fee
Filename:
MIME Type:
Creator:
Christophe Croullebois
Created:
2015-02-11 14:10:01 UTC
Size:
1.82 KB
patch
obsolete
>From 94057cd932d6aa4a287652e17fe0535ff7b8735f Mon Sep 17 00:00:00 2001 >From: Christophe Croullebois <christophe.croullebois@biblibre.com> >Date: Wed, 11 Feb 2015 14:46:47 +0100 >Subject: [PATCH] Bug 13697 : Option to do not add a fee, if the patron > changes to a category with enrolment fee > >--- > C4/Members.pm | 2 ++ > installer/data/mysql/updatedatabase.pl | 7 +++++++ > 2 files changed, 9 insertions(+) > >diff --git a/C4/Members.pm b/C4/Members.pm >index 6f95b94..1cec21f 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -811,7 +811,9 @@ sub ModMember { > > # If the patron changes to a category with enrollment fee, we add a fee > if ( $data{categorycode} and $data{categorycode} ne $old_categorycode ) { >+ if (C4::Context->preference('FeeOnChangePatronCategory') == 0){ > AddEnrolmentFeeIfNeeded( $data{categorycode}, $data{borrowernumber} ); >+ } > } > > # If NorwegianPatronDBEnable is enabled, we set syncstatus to something that a >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index dab1c62..654fad1 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -9759,6 +9759,13 @@ if ( CheckVersion($DBversion) ) { > SetVersion ($DBversion); > } > >+$DBversion = "3.19.00.XXX"; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('FeeOnChangePatronCategory','0','If set, when the patron changes to a category with enrolment fee, a fee is not added','','YesNo')"); >+ print "Upgrade to $DBversion done (Bug 13697 - Option to don't add a fee, if the patron changes to a category with enrolment fee)\n"; >+ SetVersion($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >-- >1.7.9.5 >
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 13697
:
35831
|
36234
|
37048
|
37049
|
42076
|
42122