pending => 1,
});
# FIXME looks like $available is not needed
- # If a patron is discharged he has a validated discharge available
+ # If a user is discharged they have a validated discharge available
my $available = Koha::Patron::Discharge::count({
borrowernumber => $loggedinuser,
validated => 1,