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:
parent
49772c9612
commit
fb6da950a7
1 changed files with 7 additions and 5 deletions
|
@ -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 ] } } ),
|
||||
},
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue