Bug 9809: [QA Follow-up] Remove an erroneous call to GetReserveFee
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 21 Aug 2015 08:47:19 +0000 (10:47 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 26 Aug 2015 13:26:54 +0000 (10:26 -0300)
commitb7119848850c8bb44cb933d7b07d8582a761a181
tree4c071d6b9a98b412677a9b19dcec185975bf522d
parent71ce0d96c9d72571e45c568acb7aab321a42009b
Bug 9809: [QA Follow-up] Remove an erroneous call to GetReserveFee

The call to GetReserveFee in opac-reserve.pl is useless in its current
form. The first parameter undef takes care of receiving 0.
But note that the user is warned correctly for the charge via param
variable RESERVE_CHARGE on the opac form.

When the hold is placed, AddReserve calls GetReserveFee. So if the routine
would work correctly, we would not need this extra call in opac-reserve
in the whole place. Unfortunately, the routine is not working correctly.

I will submit a fix for GetReserveFee under a new report (14702).

Test plan:
[1] Add a hold fee to some category.
[2] Check the warn for placing a hold on such a book in OPAC.
[3] Observe that the actual fee is not charged. This is a current bug and
    it will be addressed on report 14702.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
opac/opac-reserve.pl