]> git.koha-community.org Git - koha.git/commit
Bug 28097: Mock finesModes to disable recalculation
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 7 Apr 2021 11:10:38 +0000 (12:10 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 19 Apr 2021 10:11:24 +0000 (12:11 +0200)
commitffd059075fd5788eb5456c52a675303f430a0787
tree7fd48caa307a03c0a42e52f34a3a499aa55991df
parente7345defd88b6a8d9a643586b6072574d8eeaddb
Bug 28097: Mock finesModes to disable recalculation

Since bug 8338 the recalcuated zero amount fine is subsequently removed
in _FixOverduesOnReturn which causes this test to fail if finesMode is
'production' and 'CalculateFinesOnReturn' is enabled.

Perhaps we should be 'VOID'ing fines rather than completely deleting
them, but that's a question for another day.

Test plan
1/ Enable finesMode in the staff client
2/ Run the test and watch it fail
3/ Apply the patch
4/ Run the test and watch it pass

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit f3e81738c83f6f2bae869f056ba934fc45315c1f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/Account/Line.t