Same as other patches, reservefee is only used in opac-reserve.pl
Test plan;
Set reserve fee for a patron category
Place a hold at the OPAC with one of these patrons.
You must get a message about the reserve fee.
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
SELECT borrowers.*,
category_type,
categories.description,
- reservefee,
enrolmentperiod
FROM borrowers
LEFT JOIN categories ON borrowers.categorycode=categories.categorycode
SELECT borrowers.*,
category_type,
categories.description,
- reservefee,
enrolmentperiod
FROM borrowers
LEFT JOIN categories ON borrowers.categorycode = categories.categorycode
}
# Pass through any reserve charge
-if ($borr->{reservefee} > 0){
- $template->param( RESERVE_CHARGE => sprintf("%.2f",$borr->{reservefee}));
+my $reservefee = $patron->category->reservefee;
+if ( $reservefee > 0){
+ $template->param( RESERVE_CHARGE => sprintf("%.2f",$reservefee));
}
my $itemTypes = GetItemTypes();