Bug 37578: Remove the Charges tab from checkout and patron details

This patch removes the "Charges" tab from the include file which is used
by the circulation and patron details templates. Information about
charges and credits is already shown at the top of these pages under the
"Attention" heading.

This tab is already hidden on the checkout page
because the script doesn't provide the data to display.

To test, apply the patch locate a patron with charges.

- Check out to the patron. As before, you should see under the
  "Attention" heading at the top, "Charges: Patron has outstanding
  charges of..."
- There should be no "Charges" tab below in the section showing tabs for
  checkouts, holds, etc.
- Check the same details on the patron detai page.
- A patron with credits should be displayed similarly.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Nicolas Hunstein <nicolas.hunstein@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Owen Leonard 2024-08-06 17:09:53 +00:00 committed by Katrin Fischer
parent a73cafda2d
commit 158092f283
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -13,12 +13,6 @@
[% END %]
[% END %]
[% IF ( fines ) %]
[% WRAPPER tab_item tabname= "finesandcharges" %]
<span>Charges ([% fines | $Price %])</span>
[% END %]
[% END %]
[% IF ( guarantees_fines ) %]
[% WRAPPER tab_item tabname= "guarantees_finesandcharges" %]
<span>Guarantees' charges ([% guarantees_fines | $Price %])</span>
@ -99,14 +93,6 @@
[% INCLUDE "relatives-issues-table.inc" %]
[% END # /tab_panel# %]
[% WRAPPER tab_panel tabname="finesandcharges" %]
[% IF ( fines ) %]
<p>Total due: [% fines | $Price %]</p>
[% ELSE %]
<p>No outstanding charges</p>
[% END %]
[% END # /tab_panel# %]
[% IF ( guarantees_fines ) %]
[% WRAPPER tab_panel tabname="guarantees_finesandcharges" %]
<table id="tguaranteesfines">