@@ -, +, @@ - Search Admin->System preferences for 'RoundFinesAtPayment' - Note it is listed under self-check - Apply patch - Restart/refresh - Note it is now under 'Fines Policy' --- Koha/Z3950Responder.pm | 2 +- .../prog/en/modules/admin/preferences/circulation.pref | 12 ++++++------ members/paycollect.pl | 3 +++ misc/z3950_responder.pl | 3 ++- 4 files changed, 12 insertions(+), 8 deletions(-) --- a/Koha/Z3950Responder.pm +++ a/Koha/Z3950Responder.pm @@ -107,7 +107,7 @@ sub new { # Set num to prefetch if not passed $self->{num_to_prefetch} //= 20; - +warn Data::Dumper::Dumper( @_ ); $self->{server} = Net::Z3950::SimpleServer->new( INIT => sub { $self->init_handler(@_) }, SEARCH => sub { $self->search_handler(@_) }, --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -902,6 +902,12 @@ Circulation: - pref: ProcessingFeeNote type: textarea class: code + - + - pref: RoundFinesAtPayment + choices: + yes: Do + no: "Don't" + - 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. Self check-in module: - - "Include the following HTML on the self check-in screen:" @@ -932,12 +938,6 @@ Circulation: type: textarea syntax: javascript class: code - - - - pref: RoundFinesAtPayment - choices: - yes: Do - no: "Don't" - - 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. Self Checkout: - - "Include the following JavaScript on all pages in the web-based self checkout:" --- a/members/paycollect.pl +++ a/members/paycollect.pl @@ -159,6 +159,9 @@ if ( $selected_accts ) { if ( $total_paid and $total_paid ne '0.00' ) { $total_paid = $total_due if (abs($total_paid - $total_due) < 0.01) && C4::Context->preference('RoundFinesAtPayment'); + warn $total_paid; + warn $total_due; + warn C4::Context->preference('RoundFinesAtPayment'); if ( $total_paid < 0 or $total_paid > $total_due ) { $template->param( error_over => 1, --- a/misc/z3950_responder.pl +++ a/misc/z3950_responder.pl @@ -165,7 +165,8 @@ if (!$config_dir) { } # Create and start the server. - +warn Data::Dumper::Dumper(@yaz_options); +warn Data::Dumper::Dumper($config_dir); my $z = Koha::Z3950Responder->new( { add_item_status_subfield => $add_item_status_subfield, add_status_multi_subfield => $add_status_multi_subfield, --