]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Fri, 5 Aug 2016 05:46:32 +0000 (07:46 +0200)
commitc0e2610bda62b3890fd5416124bc9c1157c23d4d
treeaee66f40d874ce506054db017309c8e4584c9e6f
parentb765cd3e31d2c0c504f56589a49706106f6b304e
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>
C4/Accounts.pm