@@ -, +, @@ - Go to a Patron screen - Fines tab on the left - Create manual invoice --- members/pay.pl | 1 + members/paycollect.pl | 1 + 2 files changed, 2 insertions(+) --- a/members/pay.pl +++ a/members/pay.pl @@ -97,6 +97,7 @@ elsif ( $input->param('confirm_writeoff') ) { my $accountline = Koha::Account::Lines->find( $accountlines_id ); + $amount = $accountline->amountoutstanding if (abs($amount - $accountline->amountoutstanding) < 0.01); if ( $amount > $accountline->amountoutstanding ) { print $input->redirect( "/cgi-bin/koha/members/paycollect.pl?" . "borrowernumber=$borrowernumber" --- a/members/paycollect.pl +++ a/members/paycollect.pl @@ -106,6 +106,7 @@ if ( $individual || $writeoff ) { } if ( $total_paid and $total_paid ne '0.00' ) { + $total_paid = $total_due if (abs($total_paid - $total_due) < 0.01); if ( $total_paid < 0 or $total_paid > $total_due ) { $template->param( error_over => 1, --