View | Details | Raw Unified | Return to bug 19191
Collapse All | Expand All

(-)a/Koha/Account.pm (-6 / +7 lines)
Lines 268-278 sub pay { Link Here
268
            letter_code            => uc("ACCOUNT_$type"),
268
            letter_code            => uc("ACCOUNT_$type"),
269
            message_transport_type => 'email',
269
            message_transport_type => 'email',
270
            lang    => Koha::Patrons->find( $self->{patron_id} )->lang,
270
            lang    => Koha::Patrons->find( $self->{patron_id} )->lang,
271
            objects => {
271
            tables => {
272
                patron  => scalar Koha::Patrons->find( $self->{patron_id} ),
272
                borrowers       => $self->{patron_id},
273
                library => scalar Koha::Libraries->find( $self->{library_id} ),
273
                branches        => $self->{library_id},
274
                offsets => \@account_offsets,
274
            },
275
                credit  => $payment,
275
            substitute => {
276
                credit => $payment,
277
                offsets => scalar Koha::Account::Offsets->search( { id => { -in => [ map { $_->id } @account_offsets ] } } ),
276
            },
278
            },
277
          )
279
          )
278
      )
280
      )
279
- 

Return to bug 19191