@@ -, +, @@ 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). error. You shouldn't be able to write off more than the amount. selected'. 'Paid'. still be blocked where relevant. --- members/paycollect.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/members/paycollect.pl +++ a/members/paycollect.pl @@ -43,7 +43,7 @@ my $writeoff_individual = $input->param('writeoff_individual'); my $change_given = $input->param('change_given'); my $type = scalar $input->param('type') || 'PAYMENT'; -my $updatecharges_permissions = ($writeoff_individual || $type eq 'writeoff') ? 'writeoff' : 'remaining_permissions'; +my $updatecharges_permissions = ($writeoff_individual || $type eq 'WRITEOFF') ? 'writeoff' : 'remaining_permissions'; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => 'members/paycollect.tt', query => $input, @@ -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 --