X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0845c4b7d7a969d68cd55a15780c0af2fbe4d2db..c4885ddf724ece6960bfc53015d55d4bf61c86c6:/SL/DB/Order.pm diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index b9959aa7e..00886d67e 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -39,6 +39,12 @@ __PACKAGE__->meta->initialize; sub items { goto &orderitems; } +sub items_sorted { + my ($self) = @_; + + return [ sort {$a->id <=> $b->id } @{ $self->items } ]; +} + sub type { my $self = shift; @@ -132,6 +138,10 @@ sub number { return $self->${ \ $number_method{$self->type} }(@_); } +sub date { + goto &transdate; +} + 1; __END__