projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
992eaee
)
Zeiterfassung: Eingabe: Aufträge nur mit Nummer und Kunden anzeigen
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 6 May 2021 15:24:31 +0000
(17:24 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 6 May 2021 15:27:49 +0000
(17:27 +0200)
SL/Controller/TimeRecording.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/TimeRecording.pm
b/SL/Controller/TimeRecording.pm
index
e97c3c1
..
84f1814
100644
(file)
--- 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 {