Koha::Account::Offsets - Koha Account Offset Object set class
Account offsets track the changes made to the balance of account lines
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.
my $non_reversible_offsets = Koha::Account::Offsets->search(..)->filter_by_non_reversible;
Filter offsets so only non-reversible ones are left in the resultset.
my $reversible_offsets = Koha::Account::Offsets->search(..)->filter_by_reversible;
Filter offsets so only reversible ones are left in the resultset.