Lieferadresse: Falsche Stadt wird angezeigt
[kivitendo-erp.git] / templates / webpages / io / select_item.html
index 11dfbf6..f576486 100644 (file)
@@ -1,17 +1,20 @@
-[% USE LxERP %][% USE HTML %][% USE L %]
+[% USE LxERP %][% USE HTML %][% USE L %][% USE P %]
 <h1>[% title %]</h1>
 
  <form method="post" action="[% HTML.escape(script) %]">
 
   <table width="100%">
    <tr class="listheading">
-    [%- IF myconfig_item_multiselect %]
+    [%- IF MYCONFIG.item_multiselect %]
       <th>[% LxERP.t8('Qty') %]</th>
     [%- ELSE %]
       <th>&nbsp;</th>
     [%- END %]
     <th>[% LxERP.t8('Number') %]</th>
     <th>[% LxERP.t8('Part Description') %]</th>
+    [%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
+      <th>[% LxERP.t8('Long Description') %]</th>
+    [%- END %]
     <th>[% LxERP.t8('Other Matches') %]</th>
     <th>[% LxERP.t8('Price') %]</th>
     [%- IF IS_PURCHASE %]
 
    [%- FOREACH item = ITEM_LIST %]
    <tr class="listrow[% loop.count % 2 %]">
-    [%- IF myconfig_item_multiselect %]
+    [%- IF MYCONFIG.item_multiselect %]
       <td>[% L.input_tag('select_qty_' _ HTML.escape(item.id), '', size => 5) %]</td>
     [%- ELSE %]
       <td><input name="select_item_id" class="radio" type="radio" value="[% HTML.escape(item.id) %]"[% IF loop.first %] checked[% END %]></td>
     [%- END %]
     <td>[% HTML.escape(item.partnumber) %]</td>
     <td>[% HTML.escape(item.description) %]</td>
+    [%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
+      <td>[% P.restricted_html(item.longdescription) %]</td>
+    [%- END %]
     <td>[% HTML.escape(item.matches).join('<br>') %]</td>
     <td align="right">[% LxERP.format_amount(item.display_sellprice, 2) %]</td>
     [%- IF IS_PURCHASE %]
@@ -50,7 +56,7 @@
   [% L.submit_tag('action', LxERP.t8('Continue')) %]
  </form>
 
-[%- IF myconfig_item_multiselect %]
+[%- IF MYCONFIG.item_multiselect %]
  <script type='text/javascript'>
    var first_click = 1;;
    [%- FOREACH item = ITEM_LIST %]