]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Kundenspezifische Artikelpreise: Reihenfolge/sortorder berücksichtigen
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 7 Feb 2020 11:10:51 +0000 (12:10 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 7 Feb 2020 11:17:49 +0000 (12:17 +0100)
SL/DB/Part.pm
templates/webpages/part/_customerprices.html

index db3a26663a7d9cce8897d113ad8ccaa71f32c180..581b468d5056734122d868c01f41a6aa9494510e 100644 (file)
@@ -80,7 +80,8 @@ __PACKAGE__->meta->add_relationships(
 __PACKAGE__->meta->initialize;
 
 __PACKAGE__->attr_html('notes');
-__PACKAGE__->attr_sorted({ unsorted => 'makemodels', position => 'sortorder' });
+__PACKAGE__->attr_sorted({ unsorted => 'makemodels',     position => 'sortorder' });
+__PACKAGE__->attr_sorted({ unsorted => 'customerprices', position => 'sortorder' });
 
 __PACKAGE__->before_save('_before_save_set_partnumber');
 
index 49f32c3289f2b9c2248b57acc4b85965af97ce5c..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 %]