<<

NAME

Koha::Account::Line - Koha accountline Object class

API

Class methods

item

Return the item linked to this account line if exists

void

$payment_accountline->void();

apply

    my $debits = $account->outstanding_debits;
    my $outstanding_amount = $credit->apply( { debits => $debits, [ offset_type => $offset_type ] } );

Applies the credit to a given debits set.

arguments hashref

debits - Koha::Account::Lines object set of debits
offset_type (optional) - a string indicating the offset type (valid values are those from the 'account_offset_types' table)

is_credit

    my $bool = $line->is_credit;

is_debit

    my $bool = $line->is_debit;

Internal methods

_type

<<