Browse Source

Bug 30458: Include librarian (manager_id) in accountline when using "Payout amount" button

When using the "Payout amount" button, accountlines.manager_id is not
populated. This is not the case with the "Issue payout" buttons.

Test Plan:
1) Create a manual credit
2) Issue a payout using the "Payout amount" button
3) Inspect the payout accountline, note it has no manager_id
4) Apply this patch, restart all the things!
5) Repeat steps 1 and 2
6) Note the new payout accountline has a manager_id!

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
JK: Fix commit title

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 0177b88eb3)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 73f7c89ba6)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
21.11.x
Kyle Hall 2 years ago
committed by Arthur Suzuki
parent
commit
eff7bb8df3
  1. 2
      Koha/Account.pm

2
Koha/Account.pm

@ -606,7 +606,7 @@ sub payout_amount {
type => 'PAYOUT',
transaction_type => $params->{payout_type},
amountoutstanding => $params->{amount},
manager_id => $params->{staff_id},
user_id => $params->{staff_id},
interface => $params->{interface},
branchcode => $params->{branch},
cash_register => $params->{cash_register}

Loading…
Cancel
Save