]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 8 Apr 2021 13:37:40 +0000 (15:37 +0200)
commitf3e81738c83f6f2bae869f056ba934fc45315c1f
tree7a8861d5411585aae3814de1d4899a709f760246
parent4bfc2584e02f3233fed8c8f329205d712f3bfe0b
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>
t/db_dependent/Koha/Account/Line.t