From eff7bb8df389947bb5c2c4f5a6c8961acb1a0198 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=utf8 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 (cherry picked from commit 0177b88eb33d398da4eb5ffb6344226930c3346b) Signed-off-by: Lucas Gass (cherry picked from commit 73f7c89ba69a32482fe7b3cb02e98b21ef443a45) Signed-off-by: Arthur Suzuki --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index ea61594b3f..12898726cd 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.39.5