Bug 20912: (QA follow-up) Warn patron of daily and hourly renewal fees
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
2802f20e38
commit
2b86e9659d
|
|
@ -295,7 +295,13 @@
|
|||
<input type="checkbox" name="item" value="[% ISSUE.itemnumber | uri %]"/> <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% ISSUE.itemnumber | uri %]&borrowernumber=[% ISSUE.borrowernumber | uri %]">Renew</a>
|
||||
[% END %]
|
||||
[% IF ISSUE.renewalfee > 0 %]
|
||||
<span class="renewalfee">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span>
|
||||
<span class="renewalfee label label-warning">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span>
|
||||
[% END %]
|
||||
[% IF ISSUE.itemtype_object.rentalcharge_daily > 0 %]
|
||||
<span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_daily | $Price %] per day</span>
|
||||
[% END %]
|
||||
[% IF ISSUE.itemtype_object.rentalcharge_hourly > 0 %]
|
||||
<span class="renewalfee label label-warning">[% ISSUE.itemtype_object.rentalcharge_hourly | $Price %] per hour</span>
|
||||
[% END %]
|
||||
<span class="renewals">([% ISSUE.renewsleft | html %] of [% ISSUE.renewsallowed | html %] renewals remaining)</span>
|
||||
[% ELSIF ( ISSUE.on_reserve ) %]
|
||||
|
|
|
|||
|
|
@ -222,6 +222,7 @@ if ( $pending_checkouts->count ) { # Useless test
|
|||
my ($status,$renewerror) = CanBookBeRenewed( $borrowernumber, $issue->{'itemnumber'} );
|
||||
($issue->{'renewcount'},$issue->{'renewsallowed'},$issue->{'renewsleft'}) = GetRenewCount($borrowernumber, $issue->{'itemnumber'});
|
||||
( $issue->{'renewalfee'}, $issue->{'renewalitemtype'} ) = GetIssuingCharges( $issue->{'itemnumber'}, $borrowernumber );
|
||||
$issue->{itemtype_object} = Koha::ItemTypes->find( Koha::Items->find( $issue->{itemnumber} )->effective_itemtype );
|
||||
if($status && C4::Context->preference("OpacRenewalAllowed")){
|
||||
$issue->{'status'} = $status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue