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