]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/part/_customerprices.html
Kundenspezifische Artikelpreise: Reihenfolge/sortorder berücksichtigen
[mfinanz.git] / templates / webpages / part / _customerprices.html
index 9384a6c8f2749884e447357cb66043b205259269..b9ffd47984d02d85b28631f0ec9a8ff89a9a76ea 100644 (file)
@@ -19,7 +19,7 @@
         </thead>
         <tbody id="customerprice_rows">
         [% SET listrow = 0 %]
-        [%- FOREACH customerprice = SELF.part.customerprices %]
+        [%- FOREACH customerprice = SELF.part.customerprices_sorted %]
         [% listrow = listrow + 1 %]
         [% PROCESS 'part/_customerprice_row.html' customerprice=customerprice listrow=listrow %]
         [%- END %]
     </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>