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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 526-531 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
526
('ReturnpathDefault','',NULL,'Use this email address as return path or bounce address for undeliverable emails','Free'),
526
('ReturnpathDefault','',NULL,'Use this email address as return path or bounce address for undeliverable emails','Free'),
527
('reviewson','1','','If ON, enables patron reviews of bibliographic records in the OPAC','YesNo'),
527
('reviewson','1','','If ON, enables patron reviews of bibliographic records in the OPAC','YesNo'),
528
('RisExportAdditionalFields',  '', NULL ,  'Define additional RIS tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.',  'textarea'),
528
('RisExportAdditionalFields',  '', NULL ,  'Define additional RIS tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.',  'textarea'),
529
('RoundFinesAtPayment','0', NULL,'If enabled any fines with fractions of a cent will be rounded to the nearest cent when payments are coll    ected. e.g. 1.004 will be paid off by a 1.00 payment','YesNo'),
529
('RoutingListAddReserves','0','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
530
('RoutingListAddReserves','0','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
530
('RoutingListNote','To change this note edit <a href=\"/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=RoutingListNote#jumped\">RoutingListNote</a> system preference.','70|10','Define a note to be shown on all routing lists','Textarea'),
531
('RoutingListNote','To change this note edit <a href=\"/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=RoutingListNote#jumped\">RoutingListNote</a> system preference.','70|10','Define a note to be shown on all routing lists','Textarea'),
531
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
532
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+6 lines)
Lines 911-916 Circulation: Link Here
911
              type: textarea
911
              type: textarea
912
              syntax: javascript
912
              syntax: javascript
913
              class: code
913
              class: code
914
        -
915
            - pref: RoundFinesAtPayment
916
              choices:
917
                  yes: Do
918
                  no: "Don't"
919
            - round fines to the nearest cent when collecting payments. Enabling this preference allows paying fines of partial cents which may not be visible in the interface.
914
    Self Checkout:
920
    Self Checkout:
915
        -
921
        -
916
            - "Include the following JavaScript on all pages in the web-based self checkout:"
922
            - "Include the following JavaScript on all pages in the web-based self checkout:"
(-)a/members/pay.pl (-1 / +1 lines)
Lines 98-104 elsif ( $input->param('confirm_writeoff') ) { Link Here
98
98
99
    my $accountline = Koha::Account::Lines->find( $accountlines_id );
99
    my $accountline = Koha::Account::Lines->find( $accountlines_id );
100
100
101
    $amount = $accountline->amountoutstanding if (abs($amount - $accountline->amountoutstanding) < 0.01);
101
    $amount = $accountline->amountoutstanding if (abs($amount - $accountline->amountoutstanding) < 0.01) && C4::Context->preference('RoundFinesAtPayment');
102
    if ( $amount > $accountline->amountoutstanding ) {
102
    if ( $amount > $accountline->amountoutstanding ) {
103
        print $input->redirect( "/cgi-bin/koha/members/paycollect.pl?"
103
        print $input->redirect( "/cgi-bin/koha/members/paycollect.pl?"
104
              . "borrowernumber=$borrowernumber"
104
              . "borrowernumber=$borrowernumber"
(-)a/members/paycollect.pl (-2 / +1 lines)
Lines 136-142 if ( $pay_individual || $writeoff_individual ) { Link Here
136
}
136
}
137
137
138
if ( $total_paid and $total_paid ne '0.00' ) {
138
if ( $total_paid and $total_paid ne '0.00' ) {
139
    $total_paid = $total_due if (abs($total_paid - $total_due) < 0.01);
139
    $total_paid = $total_due if (abs($total_paid - $total_due) < 0.01) && C4::Context->preference('RoundFinesAtPayment');
140
    if ( $total_paid < 0 or $total_paid > $total_due ) {
140
    if ( $total_paid < 0 or $total_paid > $total_due ) {
141
        $template->param(
141
        $template->param(
142
            error_over => 1,
142
            error_over => 1,
143
- 

Return to bug 17140