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

(-)a/C4/Circulation.pm (-1 / +3 lines)
Lines 1062-1068 sub AddIssue { Link Here
1062
1062
1063
        ## If item was lost, it has now been found, reverse any list item charges if neccessary.
1063
        ## If item was lost, it has now been found, reverse any list item charges if neccessary.
1064
        if ( $item->{'itemlost'} ) {
1064
        if ( $item->{'itemlost'} ) {
1065
            _FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, $item->{'barcode'} );
1065
            if ( C4::Context->preference('RefundLostItemFeeOnReturn' ) {
1066
                _FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, $item->{'barcode'} );
1067
            }
1066
        }
1068
        }
1067
1069
1068
        ModItem({ issues           => $item->{'issues'},
1070
        ModItem({ issues           => $item->{'issues'},
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 362-364 INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES(' Link Here
362
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('AutoResumeSuspendedHolds',  '1', NULL ,  'Allow suspended holds to be automatically resumed by a set date.',  'YesNo');
362
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('AutoResumeSuspendedHolds',  '1', NULL ,  'Allow suspended holds to be automatically resumed by a set date.',  'YesNo');
363
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
363
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
364
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
364
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
365
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('RefundLostItemFeeOnReturn', '1', 'If enabled, the lost item fee charged to a borrower will be refunded when the lst item is returned.', NULL, 'YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +7 lines)
Lines 5212-5217 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5212
    SetVersion($DBversion);
5212
    SetVersion($DBversion);
5213
}
5213
}
5214
5214
5215
$DBversion = "3.08.00.XXX";
5216
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5217
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('RefundLostItemFeeOnReturn', '1', 'If enabled, the lost item fee charged to a borrower will be refunded when the lst item is returned.', NULL, 'YesNo')");
5218
    print "Upgrade to $DBversion done ( Add system preference RefundLostItemFeeOnReturn )\n";
5219
    SetVersion($DBversion);
5220
}
5221
5215
=head1 FUNCTIONS
5222
=head1 FUNCTIONS
5216
5223
5217
=head2 TableExists($table)
5224
=head2 TableExists($table)
5218
- 

Return to bug 7189