Revision 42e01a1a
Von Bernd Bleßmann vor fast 10 Jahren hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
49 | 49 |
sub items_sorted { |
50 | 50 |
my ($self) = @_; |
51 | 51 |
|
52 |
return [ sort {$a->id <=> $b->id } @{ $self->items } ];
|
|
52 |
return [ sort {$a->position <=> $b->position } @{ $self->items } ];
|
|
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
sub sales_order { |
SL/DB/Order.pm | ||
---|---|---|
66 | 66 |
sub items_sorted { |
67 | 67 |
my ($self) = @_; |
68 | 68 |
|
69 |
return [ sort {$a->id <=> $b->id } @{ $self->items } ];
|
|
69 |
return [ sort {$a->position <=> $b->position } @{ $self->items } ];
|
|
70 | 70 |
} |
71 | 71 |
|
72 | 72 |
sub type { |
Auch abrufbar als: Unified diff
Item-Positionen in DB: items_sorted sortiert nach postition …
in Order und DeliveryOrder