From: Bernd Bleßmann Date: Tue, 18 May 2021 11:51:47 +0000 (+0200) Subject: Zeiterfassung: Eingabe: geschlossene Aufträge von bestehenden Einträgen anzeigen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~210 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9abe4cbe21f4109e5323c49fa7baa1aa0e7cfb1d;p=kivitendo-erp.git Zeiterfassung: Eingabe: geschlossene Aufträge von bestehenden Einträgen anzeigen --- 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||[]} ];