Bug 19208 - Pay select option doesn't pay the selected fine
commitdcda5a4dc52eebe621ccfd491eddbb162c476ebb
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 30 Aug 2017 14:35:03 +0000 (30 10:35 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 12 Sep 2017 14:37:42 +0000 (12 16:37 +0200)
tree1f3b6a8f9193af96d63ce016854b13f71d224287
parent6431bf5d9a20737bcd6a8c4ac4426c5ba1bffd80
Bug 19208 - Pay select option doesn't pay the selected fine

The "Pay selected" option on the Fines tab in the borrower account page doesn't work as intended.
The fine on top of the list gets the amount deducted, even if another fine is choosen from the list.

Test Plan:
1) Create two or three fines, using the Create manual invoice function.
2) Choose one of the fines (not the one on the top) and click Pay selected
3) Pay a partial amount
4) Go back to the Pay fines tab an notice that the fine you selected has not changed. Instead, either the top fine or the total (see attachment) has ben affected.
5) Apply this patch
6) Repeat steps 1-3
7) Note the correct fine is paid

Signed-off-by: Andreas Hedström Mace <andreas.hedstrom.mace@sub.su.se>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 831d75d09c276f25f919cbdc16c8e4105fe8ddc9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt
members/paycollect.pl