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

(-)a/C4/Circulation.pm (-1 / +3 lines)
Lines 1069-1075 sub AddIssue { Link Here
1069
1069
1070
        ## If item was lost, it has now been found, reverse any list item charges if neccessary.
1070
        ## If item was lost, it has now been found, reverse any list item charges if neccessary.
1071
        if ( $item->{'itemlost'} ) {
1071
        if ( $item->{'itemlost'} ) {
1072
            _FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, $item->{'barcode'} );
1072
            if ( C4::Context->preference('RefundLostItemFeeOnReturn' ) ) {
1073
                _FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, $item->{'barcode'} );
1074
            }
1073
        }
1075
        }
1074
1076
1075
        ModItem({ issues           => $item->{'issues'},
1077
        ModItem({ issues           => $item->{'issues'},
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 375-377 INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ( Link Here
375
INSERT INTO systempreferences (variable,value,explanation,type) VALUES('EnableBorrowerFiles','0','If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo');
375
INSERT INTO systempreferences (variable,value,explanation,type) VALUES('EnableBorrowerFiles','0','If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo');
376
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UpdateTotalIssuesOnCirc','0','Whether to update the totalissues field in the biblio on each circ.',NULL,'YesNo');
376
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UpdateTotalIssuesOnCirc','0','Whether to update the totalissues field in the biblio on each circ.',NULL,'YesNo');
377
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('IntranetSlipPrinterJS','','Use this JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/','','Free');
377
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('IntranetSlipPrinterJS','','Use this JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/','','Free');
378
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 (+7 lines)
Lines 5536-5541 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5536
    SetVersion($DBversion);
5536
    SetVersion($DBversion);
5537
}
5537
}
5538
5538
5539
$DBversion = "3.09.00.XXX";
5540
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5541
    $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')");
5542
    print "Upgrade to $DBversion done ( Add system preference RefundLostItemFeeOnReturn )\n";
5543
    SetVersion($DBversion);
5544
}
5545
5539
=head1 FUNCTIONS
5546
=head1 FUNCTIONS
5540
5547
5541
=head2 TableExists($table)
5548
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +6 lines)
Lines 393-398 Circulation: Link Here
393
                  test: Calculate (but only for mailing to the admin)
393
                  test: Calculate (but only for mailing to the admin)
394
                  production: Calculate and charge
394
                  production: Calculate and charge
395
            - fines (when <code>misc/cronjobs/fines.pl</code> is being run).
395
            - fines (when <code>misc/cronjobs/fines.pl</code> is being run).
396
        -
397
            - pref: RefundLostItemFeeOnReturn
398
              choices:
399
                  yes: Refund
400
                  no: "Don't refund"
401
            - lost item fees charged to a borrower when the lost item is returned.
396
    Self Checkout:
402
    Self Checkout:
397
        -
403
        -
398
            - pref: ShowPatronImageInWebBasedSelfCheck
404
            - pref: ShowPatronImageInWebBasedSelfCheck
399
- 

Return to bug 7189