View | Details | Raw Unified | Return to bug 13697
Collapse All | Expand All

(-)a/C4/Members.pm (-1 / +3 lines)
Lines 811-817 sub ModMember { Link Here
811
811
812
        # If the patron changes to a category with enrollment fee, we add a fee
812
        # If the patron changes to a category with enrollment fee, we add a fee
813
        if ( $data{categorycode} and $data{categorycode} ne $old_categorycode ) {
813
        if ( $data{categorycode} and $data{categorycode} ne $old_categorycode ) {
814
            AddEnrolmentFeeIfNeeded( $data{categorycode}, $data{borrowernumber} );
814
            if ( C4::Context->preference('FeeOnChangePatronCategory') ) {
815
                AddEnrolmentFeeIfNeeded( $data{categorycode}, $data{borrowernumber} );
816
            }
815
        }
817
        }
816
818
817
        # If NorwegianPatronDBEnable is enabled, we set syncstatus to something that a
819
        # If NorwegianPatronDBEnable is enabled, we set syncstatus to something that a
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 124-129 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
124
('ExtendedPatronAttributes','0',NULL,'Use extended patron IDs and attributes','YesNo'),
124
('ExtendedPatronAttributes','0',NULL,'Use extended patron IDs and attributes','YesNo'),
125
('FacetLabelTruncationLength','20',NULL,'Specify the facet max length in OPAC','Integer'),
125
('FacetLabelTruncationLength','20',NULL,'Specify the facet max length in OPAC','Integer'),
126
('FacetMaxCount','20',NULL,'Specify the max facet count for each category','Integer'),
126
('FacetMaxCount','20',NULL,'Specify the max facet count for each category','Integer'),
127
('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is added','YesNo')
127
('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'),
128
('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'),
128
('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'),
129
('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'),
129
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
130
('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'),
(-)a/installer/data/mysql/updatedatabase.pl (+10 lines)
Lines 9867-9872 if(CheckVersion($DBversion)) { Link Here
9867
    SetVersion($DBversion);
9867
    SetVersion($DBversion);
9868
}
9868
}
9869
9869
9870
$DBversion = "3.19.00.XXX";
9871
if ( CheckVersion($DBversion) ) {
9872
    $dbh->do(q{
9873
        INSERT INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`)
9874
        VALUES ('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is added','YesNo')
9875
    });
9876
    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";
9877
    SetVersion($DBversion);
9878
}
9879
9870
=head1 FUNCTIONS
9880
=head1 FUNCTIONS
9871
9881
9872
=head2 TableExists($table)
9882
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +6 lines)
Lines 160-162 Patrons: Link Here
160
               yes: Do
160
               yes: Do
161
               no: "Don't"
161
               no: "Don't"
162
         - search the Norwegian national patron database after a local search result was found.
162
         - search the Norwegian national patron database after a local search result was found.
163
- 
163
     -
164
         - pref: FeeOnChangePatronCategory
165
           choices:
166
               yes: Do
167
               no: "Don't"
168
         - add a fee when a patron changes to a category with enrolment fee.

Return to bug 13697