e21e40ad84
This fixes a typo in the debit type description of RENT_DAILY_RENEW 1) Go to Administration > Debit types 2) Show all debit types 3) Check for the typo 4) Apply patch 5) Verify that the typo is gone 6) Check account_debit_types table for type: SELECT * FROM account_debit_types; 7) Run database update 8) Repeat and verify typo is gone Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
209 lines
11 KiB
HTML
209 lines
11 KiB
HTML
<h3>Charges</h3>
|
|
|
|
<form method="post" action="opac-account-pay.pl" class="form-horizontal">
|
|
[% IF ( ACCOUNT_LINES ) %]
|
|
<table class="table table-bordered table-striped" id="finestable">
|
|
<thead>
|
|
<tr>
|
|
[% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %]
|
|
<th class="title-string">Date</th>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
<th>Amount</th>
|
|
<th>Amount outstanding</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
[% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
|
|
[% IF ACCOUNT_LINE.amountoutstanding > 0 || ACCOUNT_LINE.amountoutstanding < 0 %]<tr class="outstanding">[% ELSE %]<tr>[% END%]
|
|
[% IF ENABLE_OPAC_PAYMENTS %]
|
|
<td>
|
|
[% IF ACCOUNT_LINE.amountoutstanding > 0 %]
|
|
[% SET DISPLAY_PAYMENT_BLOCK = 1 %]
|
|
<input class="checkbox-pay pay-online hidden" name="accountline" type="checkbox" id="checkbox-pay-[% ACCOUNT_LINE.accountlines_id | html %]" value="[% ACCOUNT_LINE.accountlines_id | html %]">
|
|
<input type="hidden" id="amount-[% ACCOUNT_LINE.accountlines_id | html %]" value="[% ACCOUNT_LINE.amountoutstanding | html %]" />
|
|
[% END %]
|
|
</td>
|
|
[% END %]
|
|
<td><span title="[% ACCOUNT_LINE.date | html %]">[% ACCOUNT_LINE.date | $KohaDates %]</span></td>
|
|
<td>
|
|
[% PROCESS account_type_description account=ACCOUNT_LINE %]
|
|
</td>
|
|
<td>
|
|
[%- IF ACCOUNT_LINE.payment_type %][% AuthorisedValues.GetByCode('PAYMENT_TYPE', ACCOUNT_LINE.payment_type, 1) | html %][% END %]
|
|
[%- IF ACCOUNT_LINE.description %][% ACCOUNT_LINE.description | html %][% END %]
|
|
[% IF ACCOUNT_LINE.itemnumber %]([% ACCOUNT_LINE.item.biblio.title | html %])[% END %]
|
|
</td>
|
|
[% IF ( ACCOUNT_LINE.is_credit ) %]<td class="credit">[% ACCOUNT_LINE.amount * -1 | $Price %][% ELSE %]<td class="debit">[% ACCOUNT_LINE.amount | $Price %][% END %]</td>
|
|
[% IF ( ACCOUNT_LINE.is_credit ) %]<td class="credit">[% ACCOUNT_LINE.amountoutstanding * -1 | $Price %][% ELSE %]<td class="debit">[% ACCOUNT_LINE.amountoutstanding | $Price %][% END %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
[%- IF ENABLE_OPAC_PAYMENTS -%]
|
|
[%- SET COLSPAN = 5 -%]
|
|
[%- ELSE -%]
|
|
[%- SET COLSPAN = 4 -%]
|
|
[%- END -%]
|
|
<th class="sum" colspan="[% COLSPAN | html %]">Total due</th>
|
|
<td class="sum">[% total | $Price %]</td>
|
|
</tr>
|
|
[% IF outstanding_credits.total_outstanding < 0 %]
|
|
[% FOREACH outstanding_credit IN outstanding_credits %]
|
|
[% IF outstanding_credit.amountoutstanding < 0 %]<tr class="outstanding">[% ELSE %]<tr>[% END%]
|
|
[% IF ENABLE_OPAC_PAYMENTS %]<td></td>[% END %]
|
|
<td><span title="[% outstanding_credit.date | html %]">[% outstanding_credit.date | $KohaDates %]</span></td>
|
|
<td>
|
|
[% PROCESS account_type_description account=outstanding_credit %]
|
|
</td>
|
|
<td>
|
|
[%- IF outstanding_credit.payment_type %][% AuthorisedValues.GetByCode('PAYMENT_TYPE', outstanding_credit.payment_type, 1) | html %][% END %]
|
|
[%- IF outstanding_credit.description %][% outstanding_credit.description | html %][% END %]
|
|
[% IF outstanding_credit.itemnumber %]([% outstanding_credit.item.biblio.title | html %])[% END %]
|
|
</td>
|
|
<td class="credit">[% outstanding_credit.amount * -1 | $Price %]</td>
|
|
<td class="credit">[% outstanding_credit.amountoutstanding * -1 | $Price %]</td>
|
|
</tr>
|
|
[% END %]
|
|
<tr>
|
|
<th class="sum" colspan="[% COLSPAN | html %]">Total due if credit(s) applied:</th>
|
|
<td class="sum">[% total + outstanding_credits.total_outstanding | $Price %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
|
|
[% ELSE %]
|
|
<h4>You have no fines or charges</h4>
|
|
[% END %]
|
|
|
|
[% FOREACH r IN relatives %]
|
|
<h3 id="g[% r.patron.id | html %]">[% r.patron.firstname | html %] [% r.patron.surname | html %]'s fines and charges</h3>
|
|
|
|
<table class="table table-bordered table-striped" id="finestable-[% r.id | html %]">
|
|
<thead>
|
|
<tr>
|
|
[% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %]
|
|
<th class="title-string">Date</th>
|
|
<th>Description</th>
|
|
<th>Fine amount</th>
|
|
<th>Amount outstanding</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
[% SET account_sum = 0 %]
|
|
[% FOREACH a IN r.accountlines %]
|
|
[% SET account_sum = account_sum + a.amountoutstanding %]
|
|
<tr>
|
|
[% IF ENABLE_OPAC_PAYMENTS %]
|
|
<td>
|
|
[% IF a.amountoutstanding > 0 %]
|
|
[% SET DISPLAY_PAYMENT_BLOCK = 1 %]
|
|
<input class="checkbox-pay pay-online hidden" name="accountline" type="checkbox" id="checkbox-pay-[% a.accountlines_id | html %]" value="[% a.accountlines_id | html %]">
|
|
<input type="hidden" id="amount-[% a.accountlines_id | html %]" value="[% a.amountoutstanding | html %]" />
|
|
[% END %]
|
|
</td>
|
|
[% END %]
|
|
<td><span title="[% a.date | html %]">[% a.date | $KohaDates %]</span></td>
|
|
<td>
|
|
[% PROCESS account_type_description account=a %]
|
|
[%- IF a.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', a.payment_type, 1) | html %][% END %]
|
|
[%- IF a.description %], [% a.description | html %][% END %]
|
|
[% IF a.itemnumber %]([% a.item.biblio.title | html %])[% END %]
|
|
</td>
|
|
[% IF ( a.amount < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amount | $Price %]</td>
|
|
[% IF ( a.amountoutstanding < 0 ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% a.amountoutstanding | $Price %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<th class="sum" colspan="3">Total due</th>
|
|
<td class="sum">[% account_sum | $Price %]</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
[% END %]
|
|
|
|
[% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %]
|
|
<fieldset class="pay-online hidden">
|
|
<legend>Pay selected fines and charges</legend>
|
|
<span class="help-block"><h3>Payment method</h3></span>
|
|
|
|
[% IF Koha.Preference('EnablePayPalOpacPayments') %]
|
|
<div class="control-group">
|
|
<label class="radio">
|
|
<input type="radio" name="payment_method" id="payment_method-paypal" value="paypal" checked="checked">
|
|
<!-- PayPal Logo --><a href="https://www.paypal.com/webapps/mpp/paypal-popup" title="How PayPal Works" class="paypal"><img src="https://www.paypalobjects.com/webstatic/mktg/logo/AM_SbyPP_mc_vs_dc_ae.jpg" border="0" alt="PayPal Acceptance Mark"></a><!-- PayPal Logo -->
|
|
</label>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% FOREACH p IN plugins %]
|
|
<div class="control-group">
|
|
<label class="radio">
|
|
<input type="radio" data-threshold="[% p.opac_online_payment_threshold | html %]" name="payment_method" id="payment_method-[% p.class | html %]" value="[% p.class | html %]" checked="checked">
|
|
[% p.get_metadata.name | html %]
|
|
</label>
|
|
<small class="help-block text-muted"></small>
|
|
</div>
|
|
[% END %]
|
|
|
|
<div class="control-group">
|
|
<input type="hidden" id="payment-amount" name="payment_amount" value="0" />
|
|
<button id="submit-pay" type="submit" class="btn" disabled="disabled">Make payment</button>
|
|
<span id="amount-to-pay-label">
|
|
Amount to pay: <span id="amount-to-pay">0.00</span>
|
|
</span>
|
|
</div>
|
|
</fieldset>
|
|
[% END %]
|
|
</form>
|
|
|
|
[%- BLOCK account_type_description -%]
|
|
<span>
|
|
[%- IF account.credit_type_code -%]
|
|
[%- SWITCH account.credit_type_code -%]
|
|
[%- CASE 'PAYMENT' -%]Payment
|
|
[%- CASE 'WRITEOFF' -%]Writeoff
|
|
[%- CASE 'FORGIVEN' -%]Forgiven
|
|
[%- CASE 'CREDIT' -%]Credit
|
|
[%- CASE 'LOST_FOUND' -%]Lost item fee refund
|
|
[%- CASE -%][% account.credit_type.description | html %]
|
|
[%- END -%]
|
|
[%- ELSIF account.debit_type_code -%]
|
|
[%- SWITCH account.debit_type_code -%]
|
|
[%- CASE 'ACCOUNT' -%]Account creation fee
|
|
[%- CASE 'ACCOUNT_RENEW' -%]Account renewal fee
|
|
[%- CASE 'LOST' -%]Lost item
|
|
[%- CASE 'MANUAL' -%]Manual fee
|
|
[%- CASE 'NEW_CARD' -%]New card
|
|
[%- CASE 'OVERDUE' -%]Fine
|
|
[%- CASE 'PROCESSING' -%]Lost item processing fee
|
|
[%- CASE 'RENT' -%]Rental fee
|
|
[%- CASE 'RENT_DAILY' -%]Daily rental fee
|
|
[%- CASE 'RENT_RENEW' -%]Renewal of rental item
|
|
[%- CASE 'RENT_DAILY_RENEW' -%]Renewal of daily rental item
|
|
[%- CASE 'RESERVE' -%]Hold fee
|
|
[%- CASE 'RESERVE_EXPIRED' -%]Hold waiting too long
|
|
[%- CASE -%][% account.debit_type.description | html %]
|
|
[%- END -%]
|
|
[%- END -%]
|
|
[%- SWITCH account.status -%]
|
|
[%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
|
|
[%- CASE 'RETURNED' -%]<span> (Returned)</span>
|
|
[%- CASE 'REPLACED' -%]<span> (Replaced)</span>
|
|
[%- CASE 'FORGIVEN' -%]<span> (Forgiven)</span>
|
|
[%- CASE 'VOID' -%]<span> (Voided)</span>
|
|
[%- CASE 'LOST' -%]<span> (Lost)</span>
|
|
[%- CASE -%]
|
|
[%- END -%]
|
|
</span>
|
|
[%- END -%]
|