}
my $patron = Koha::Patrons->find( $self->{patron_id} );
- my @account_offsets = $payment->credit_offsets->as_list;
+ my @account_offsets = $payment->credit_offsets({ type => 'APPLY' })->as_list;
if ( C4::Context->preference('UseEmailReceipts') ) {
if (
my $letter = C4::Letters::GetPreparedLetter(
}
my $renew_outcomes = [];
- for my $message ( @{$payment->messages} ) {
+ for my $message ( @{$payment->object_messages} ) {
push @{$renew_outcomes}, $message->payload;
}
It returns the debit lines with outstanding amounts for the patron.
-In scalar context, it returns a Koha::Account::Lines iterator. In list context, it will
-return a list of Koha::Account::Line objects.
+It returns a Koha::Account::Lines iterator.
=cut
It returns the credit lines with outstanding amounts for the patron.
-In scalar context, it returns a Koha::Account::Lines iterator. In list context, it will
-return a list of Koha::Account::Line objects.
+It returns a Koha::Account::Lines iterator.
=cut