diff --git a/members/pay.pl b/members/pay.pl index a490e58e42..73b87fa113 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -99,6 +99,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" diff --git a/members/paycollect.pl b/members/paycollect.pl index 9e25476a0d..e340750e21 100755 --- a/members/paycollect.pl +++ b/members/paycollect.pl @@ -137,6 +137,7 @@ if ( $pay_individual || $writeoff_individual ) { } 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,