[Koha-bugs] [Bug 28097] t/db_dependent/Koha/Account/Line.t test fails with FinesMode set to calculate

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 7 13:13:43 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28097

--- Comment #2 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 119275
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119275&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list