<<

NAME

Koha::Account::Lines - Koha Account Line Object set class

API

Class Methods

total_outstanding

    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.

total

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

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

credits_total

    my $lines = Koha::Account::Lines->search({ ...  });
    my $credits_total = $lines->credits_total;

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

debits_total

    my $lines = Koha::Account::Lines->search({ ...  });
    my $debits_total = $lines->debits_total;

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

Internal methods

_type

<<