Bug 19191: Remove need for bug 19966

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Kyle Hall 2018-03-02 15:04:10 +00:00 committed by Nick Clemens
parent 49772c9612
commit fb6da950a7

View file

@ -270,11 +270,13 @@ sub pay {
letter_code => uc("ACCOUNT_$type"),
message_transport_type => 'email',
lang => Koha::Patrons->find( $self->{patron_id} )->lang,
objects => {
patron => scalar Koha::Patrons->find( $self->{patron_id} ),
library => scalar Koha::Libraries->find( $self->{library_id} ),
offsets => \@account_offsets,
credit => $payment,
tables => {
borrowers => $self->{patron_id},
branches => $self->{library_id},
},
substitute => {
credit => $payment,
offsets => scalar Koha::Account::Offsets->search( { id => { -in => [ map { $_->id } @account_offsets ] } } ),
},
)
)