From 4b482612c2d0ebf99050c95fdea6a1b0d22084fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 6 May 2021 17:24:31 +0200 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Eingabe:=20Auftr=C3=A4ge=20nur?= =?utf8?q?=20mit=20Nummer=20und=20Kunden=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/TimeRecording.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 { -- 2.20.1