]> git.koha-community.org Git - koha.git/commit
Bug 15397 - Pay selected does not works as expected
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 19 May 2016 13:28:02 +0000 (13:28 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 17 Aug 2016 12:10:38 +0000 (14:10 +0200)
commit45e9592eb5ed07809a178d9ae1eaed21bea07a13
tree1d2840f3632e774c2d7920f88a5f0a8b8b6dbfd7
parent0d1853382b8d874c62aeda6549b5f1cc8a24c8ef
Bug 15397 - Pay selected does not works as expected

When patron has more fees (account lines) and you wan't to pay just some
of them, you select wanted lines a click on "pay selected" button. But
the fine isn't paid, the "amountoutstandig" is not modified, but it is
added new line with "pay" code an with amountoutstanding below zero.
Paying one or all fine works as expected. Paying selected worked some
time ago, but I don't know when it stopped working, we realize it after
upgrade to 3.22.

Test Plan:
1) Apply this patch
2) Pay fines using "Pay selected"
3) Note the payment and the fees outstanding balances are reduced!

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 537adde2d2f65ed9bb9a03a127b9906930d46353)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit c0e2610bda62b3890fd5416124bc9c1157c23d4d)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Accounts.pm