From 09068cb811e719d9d9b6308bea574978bfadc59c Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Tue, 5 Apr 2022 09:40:51 -0400 Subject: [PATCH] Bug 30458:- Librarian ( manager_id ) not included 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! --- Koha/Account.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index c7cf9e58db..90d86af897 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