Koha::Cities - Koha City Object set class Koha::Account::Lines - Koha Account Line Object set class
my $lines = Koha::Account::Lines->search({ ... }); my $total = $lines->total_outstanding;
Returns the sum of the outstanding amounts of the resultset. If the resultset is empty it returns 0.