</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>