From 9abe4cbe21f4109e5323c49fa7baa1aa0e7cfb1d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 18 May 2021 13:51:47 +0200 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Eingabe:=20geschlossene=20Auftr?= =?utf8?q?=C3=A4ge=20von=20bestehenden=20Eintr=C3=A4gen=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/TimeRecording.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/TimeRecording.pm b/SL/Controller/TimeRecording.pm index 38771d1fc..10870efd0 100644 --- a/SL/Controller/TimeRecording.pm +++ b/SL/Controller/TimeRecording.pm @@ -271,7 +271,7 @@ sub init_all_time_recording_articles { } sub init_all_orders { - my $orders = SL::DB::Manager::Order->get_all(query => [or => [ closed => 0, closed => undef ], + my $orders = SL::DB::Manager::Order->get_all(query => [or => [ closed => 0, closed => undef, id => $_[0]->time_recording->order_id ], or => [ quotation => 0, quotation => undef ], '!customer_id' => undef]); return [ map { [$_->id, sprintf("%s %s", $_->number, $_->customervendor->name) ] } sort { $a->number <=> $b->number } @{$orders||[]} ]; -- 2.20.1