From e1d945fb83c559b44d3ab3a17e6437a2da1c93fc 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 d76736f..e9ab7fa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -176,10 +176,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 %]
  • @@ -275,7 +279,10 @@ Item types administration Description Not for loan 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 @@ -294,10 +301,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 -- 2.1.0