Koha::Account::Line - Koha accountline Object class
Return the item linked to this account line if exists
Return the checkout linked to this account line if exists
$payment_accountline->void();
Used to 'void' (or reverse) a payment/credit. It will roll back any offsets created by the application of this credit upon any debits and mark the credit as 'void' by updating it's status to "VOID".
my $debits = $account->outstanding_debits; my $outstanding_amount = $credit->apply( { debits => $debits, [ offset_type => $offset_type ] } );
Applies the credit to a given debits set.
This method allows updating a debit or credit on a patron's account
$account_line->adjust( { amount => $amount, type => $update_type, interface => $interface } );
$update_type can be any of: - overdue_update
Authors Note: The intention here is that this method is only used to adjust accountlines where the final amount is not yet known/fixed. Incrementing fines are the only existing case at the time of writing, all other forms of 'adjustment' should be recorded as distinct credits or debits and applied, via an offset, to the corresponding debit or credit.
my $bool = $line->is_credit;
my $bool = $line->is_debit;
Kyle M Hall <kyle@bywatersolutions.com > Tomás Cohen Arazi <tomascohen@theke.io> Martin Renvoize <martin.renvoize@ptfs-europe.com>