Revision 5a2af341
Von Bernd Bleßmann vor fast 5 Jahren hinzugefügt
SL/DB/Part.pm | ||
---|---|---|
80 | 80 |
__PACKAGE__->meta->initialize; |
81 | 81 |
|
82 | 82 |
__PACKAGE__->attr_html('notes'); |
83 |
__PACKAGE__->attr_sorted({ unsorted => 'makemodels', position => 'sortorder' }); |
|
83 |
__PACKAGE__->attr_sorted({ unsorted => 'makemodels', position => 'sortorder' }); |
|
84 |
__PACKAGE__->attr_sorted({ unsorted => 'customerprices', position => 'sortorder' }); |
|
84 | 85 |
|
85 | 86 |
__PACKAGE__->before_save('_before_save_set_partnumber'); |
86 | 87 |
|
templates/webpages/part/_customerprices.html | ||
---|---|---|
19 | 19 |
</thead> |
20 | 20 |
<tbody id="customerprice_rows"> |
21 | 21 |
[% SET listrow = 0 %] |
22 |
[%- FOREACH customerprice = SELF.part.customerprices %] |
|
22 |
[%- FOREACH customerprice = SELF.part.customerprices_sorted %]
|
|
23 | 23 |
[% listrow = listrow + 1 %] |
24 | 24 |
[% PROCESS 'part/_customerprice_row.html' customerprice=customerprice listrow=listrow %] |
25 | 25 |
[%- END %] |
Auch abrufbar als: Unified diff
Kundenspezifische Artikelpreise: Reihenfolge/sortorder berücksichtigen