From d06c5286d38e8fde897c1d797a9861eef5c21515 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 2 Jun 2020 22:30:00 +0000 Subject: [PATCH] Bug 25526: Allow write off selected of less than or equal to amount TEST PLAN: 1. Have a fine on a Patron's account. 2. Choose the "Write off Selected" button 3. Enter an amount less than the amount owed by the patron. 4. Koha will give a yellow box with a note "You must collect a value greater than or equal to 2.00." The $2.00 is the amount that is attempted to write off (the amount less than the amount owed). 5. Apply patch 6. Again try to pay an amount less than the amount owed. 7. You should be able to pay it off. 8. Try paying an amount more than owed, you should still get an error. You shouldn't be able to write off more than the amount. 9. Make sure 'Pay selected' still works as it should. Signed-off-by: Lisette Scheer --- members/paycollect.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/paycollect.pl b/members/paycollect.pl index 43c52c7c7b..b1b9cc4938 100755 --- a/members/paycollect.pl +++ b/members/paycollect.pl @@ -166,7 +166,7 @@ if ( $total_paid and $total_paid ne '0.00' ) { error_over => 1, total_due => $total_due ); - } elsif ( $total_collected < $total_paid && !( $writeoff_individual || $type eq 'writeoff') ) { + } elsif ( $total_collected < $total_paid && ( $writeoff_individual || $type eq 'writeoff') ) { $template->param( error_under => 1, total_paid => $total_paid -- 2.11.0