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>
This commit is contained in:
Kyle Hall 2022-04-05 09:40:51 -04:00 committed by Tomas Cohen Arazi
parent 417d8df61b
commit 0177b88eb3
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 1 additions and 1 deletions

View File

@ -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}