Auftrags-Controller: Benutzereinstellung: Positions-Update aus Artikel-Stamm
[kivitendo-erp.git] / templates / webpages / part / _customerprices.html
index d7c74bc..49f32c3 100644 (file)
@@ -30,7 +30,7 @@
          <td></td>
          <td></td>
          <td align="right">[% 'Customer' | $T8 %]</td>
-         <td rowspan="2">[% P.customer_vendor.customer_picker('add_customerprice', '', style='width: 300px', class="add_customerprice_input") %]</td>
+         <td rowspan="2">[% P.customer_vendor.customer_picker('add_customerprice', '', style='width: 300px', class="add_customerprice_input", action={commit_one='kivi.Part.add_customerprice_row'}) %]</td>
          <td rowspan="2" align="right">[% L.button_tag('kivi.Part.add_customerprice_row()', LxERP.t8('Add')) %]</td>
         </tr>
        </tbody>
     </td>
   </tr>
   [% L.sortable_element('#customerprice_rows') %]
-
-  <script type="text/javascript">
-  $(function() {
-
-    $('#customerprice_rows').on('sortstop', function(event, ui) {
-      kivi.Part.customerprice_renumber_positions();
-    });
-
-  })
-  </script>