]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/order/tabs/_item_input.html
Vorhandene Steuer speichern: richitge Anzahl von Bind-Variablen angeben
[mfinanz.git] / templates / webpages / order / tabs / _item_input.html
index 1d86cf42f45b1a0fdff5c80af7d6a8b1293a3fe5..80ba16393abf85f84d22a26a47cefbc5613847cb 100644 (file)
@@ -1,4 +1,4 @@
-[%- USE T8 %][%- USE HTML %][%- USE LxERP %][%- USE L %]
+[%- USE T8 %][%- USE HTML %][%- USE LxERP %][%- USE L %][%- USE P %]
 
  <div>
   <table id="input_row_table_id">
     </thead>
     <tbody>
       <tr valign="top" class="listrow">
-        <td>[% L.part_picker('add_item.parts_id', '', fat_set_item=1, style='width: 300px', class="add_item_input") %]</td>
+        <td>
+          [%- SET PARAM_KEY = SELF.cv == "customer" ? 'with_customer_partnumber' : 'with_makemodel' -%]
+          [%- SET PARAM_VAL = SELF.search_cvpartnumber -%]
+          [% P.part.picker('add_item.parts_id', '', fat_set_item=1, style='width: 300px', class="add_item_input", $PARAM_KEY=PARAM_VAL) %]</td>
         <td>[% L.input_tag('add_item.description', '', class="add_item_input") %]</td>
         <td>
           [% L.input_tag('add_item.qty_as_number', '', size = 5, class="add_item_input numeric") %]