From c40da80025f63f421f3ed63e6832d62a5d3c8599 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 8 Jun 2015 03:51:02 +0200 Subject: [PATCH] Bug 11229: branch missing from statistics of type 'payment' There are several ways of paying fines, not all of them recorded the branch the payment was made at correctly: 1) Pay button next to an individual fine 2) Checkbox + pay amount 3) Checkbox + pay selected For each of those, check if the payment registered in the table statistics contains the branchcode before and after the patch. The patch should fix 1). 2) and 3) are ok with and without the patch. Important: Don't change the amount, pay individual fines. --- C4/Accounts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index d0709d0..d798b34 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -276,7 +276,7 @@ sub makepayment { } UpdateStats({ - branch => $user, + branch => $branch, type => 'payment', amount => $amount, borrowernumber => $borrowernumber, -- 1.9.1