From f5709f1a7b68375feee70c1950ca0728783bb967 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 19 Jan 2015 16:46:56 +0100 Subject: [PATCH] Bug 12993: (qa-follow-up) Display the column only when it is useful As mention by comment 19, the default tax rate defined for item types is only useful when the items are created on ordering and the item type is defined at the biblio level. --- .../intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt index eaf4cef..3f400f7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -222,10 +222,13 @@ Item types administration + + [%# The tax rate is only useful if the item are created on ordering and if the item type is defined at the biblio level %] + [% IF Koha.Preference('AcqCreateItem') eq 'ordering' and Koha.Preference('item-level_itypes') eq '0' %]
  • + [% END %]
  • @@ -323,7 +327,10 @@ Item types administration Not for loan Hide in OPAC Charge - Tax rate + [%# The tax rate is only useful if the item are created on ordering and if the item type is defined at the biblio level %] + [% IF Koha.Preference('AcqCreateItem') eq 'ordering' and Koha.Preference('item-level_itypes') eq '0' %] + Tax rate + [% END %] Checkin message Actions @@ -358,10 +365,16 @@ Item types administration [% loo.rentalcharge %] [% END %] + [%# The tax rate is only useful if the item are created on ordering and if the item type is defined at the biblio level %] + [% IF Koha.Preference('AcqCreateItem') eq 'ordering' and Koha.Preference('item-level_itypes') eq '0' %] [% IF loo.gstrate.length > 0 %] [% loo.gstrate * 100 | format("%.1f") %]% + [% ELSE %] + Manual [% END %] + + [% END %] [% loo.checkinmsg | html_line_break %] Edit -- 1.7.10.4