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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 527-532 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
527
('ReturnpathDefault','',NULL,'Use this email address as return path or bounce address for undeliverable emails','Free'),
527
('ReturnpathDefault','',NULL,'Use this email address as return path or bounce address for undeliverable emails','Free'),
528
('reviewson','1','','If ON, enables patron reviews of bibliographic records in the OPAC','YesNo'),
528
('reviewson','1','','If ON, enables patron reviews of bibliographic records in the OPAC','YesNo'),
529
('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
('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'),
530
('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'),
530
('RoutingListAddReserves','0','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
531
('RoutingListAddReserves','0','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
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'),
532
('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'),
532
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
533
('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 917-922 Circulation: Link Here
917
              type: textarea
917
              type: textarea
918
              syntax: javascript
918
              syntax: javascript
919
              class: code
919
              class: code
920
        -
921
            - pref: RoundFinesAtPayment
922
              choices:
923
                  yes: Do
924
                  no: "Don't"
925
            - 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.
920
    Self Checkout:
926
    Self Checkout:
921
        -
927
        -
922
            - "Include the following JavaScript on all pages in the web-based self checkout:"
928
            - "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