Koha::Old::Checkouts - Koha Old Checkouts object set class
This object represents a set of completed checkouts
my $checkouts = $patron->old_checkouts; my $anonymizable_checkouts = $checkouts->filter_by_anonymizable;
This method filters the resultset, so it only contains checkouts that can be anonymized given the patron privacy settings.
$patron->old_checkouts->anonymize();
Anonymize the given Koha::Old::Checkouts resultset.