]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Sun, 25 Apr 2021 14:18:34 +0000 (14:18 +0000)
commitcdfe5a7c47f2d8f492be691d9d77309e0471e2c4
tree2e191aa802f733051b30fdcbc8cac977f3ed8838
parent9594f89df2afb531673a2bf818e22f9026fec152
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>
(cherry picked from commit ffd059075fd5788eb5456c52a675303f430a0787)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
t/db_dependent/Koha/Account/Line.t