<<

NAME

Koha::Account::Offsets - Koha Account Offset Object set class

Account offsets track the changes made to the balance of account lines

API

Class methods

total

    my $offsets = Koha::Account::Offsets->search({ ...  });
    my $total   = $offsets->total;

Returns the sum of the amounts of the account offsets resultset. If the resultset is empty it returns 0.

filter_by_non_reversible

    my $non_reversible_offsets = Koha::Account::Offsets->search(..)->filter_by_non_reversible;

Filter offsets so only non-reversible ones are left in the resultset.

filter_by_reversible

    my $reversible_offsets = Koha::Account::Offsets->search(..)->filter_by_reversible;

Filter offsets so only reversible ones are left in the resultset.

Internal methods

_type

object_class

<<