Revision 8b17f06f
Von Bernd Bleßmann vor fast 10 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
69 | 69 |
sub items_sorted { |
70 | 70 |
my ($self) = @_; |
71 | 71 |
|
72 |
return [ sort {$a->id <=> $b->id } @{ $self->items } ];
|
|
72 |
return [ sort {$a->position <=> $b->position } @{ $self->items } ];
|
|
73 | 73 |
} |
74 | 74 |
|
75 | 75 |
sub is_sales { |
SL/DB/PurchaseInvoice.pm | ||
---|---|---|
41 | 41 |
sub items_sorted { |
42 | 42 |
my ($self) = @_; |
43 | 43 |
|
44 |
return [ sort {$a->id <=> $b->id } @{ $self->items } ];
|
|
44 |
return [ sort {$a->position <=> $b->position } @{ $self->items } ];
|
|
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
sub is_sales { |
Auch abrufbar als: Unified diff
Item-Positionen für Rechnungen in DB: items_sorted sortiert nach postition …