From: Bernd Bleßmann Date: Thu, 6 May 2021 15:24:31 +0000 (+0200) Subject: Zeiterfassung: Eingabe: Aufträge nur mit Nummer und Kunden anzeigen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~257 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4b482612c2d0ebf99050c95fdea6a1b0d22084fe;p=kivitendo-erp.git Zeiterfassung: Eingabe: Aufträge nur mit Nummer und Kunden anzeigen --- diff --git a/SL/Controller/TimeRecording.pm b/SL/Controller/TimeRecording.pm index e97c3c1d8..84f1814bd 100644 --- a/SL/Controller/TimeRecording.pm +++ b/SL/Controller/TimeRecording.pm @@ -237,8 +237,9 @@ sub init_all_time_recording_articles { } sub init_all_orders { - SL::DB::Manager::Order->get_all_sorted(query => [or => [ closed => 0, closed => undef ], - '!customer_id' => undef]); + my $orders = SL::DB::Manager::Order->get_all(query => [or => [ closed => 0, closed => undef ], + '!customer_id' => undef]); + return [ map { [$_->id, sprintf("%s %s", $_->number, $_->customervendor->name) ] } sort { $a->number <=> $b->number } @{$orders||[]} ]; } sub init_use_duration {