From f5b5fe83a21b2f8c7ac572b847364d62d29185f6 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Tue, 5 Apr 2022 09:40:51 -0400 Subject: [PATCH] Bug 30458: Include librarian (manager_id) in accountline when using "Payout amount" button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 JK: Fix commit title Signed-off-by: Joonas Kylmälä Signed-off-by: Tomas Cohen Arazi Signed-off-by: Sally https://bugs.koha-community.org/show_bug.cgi?id=31207 --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index ad5d5c6040..4c13a9a07e 100644 --- a/Koha/Account.pm +++ b/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} -- 2.30.2