]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Manager/TimeRecording.pm
Zeiterfassung: Erweiterung f. Datum und Dauer: DB-Upgrade/Rose; Berichtsanzeige
[mfinanz.git] / SL / DB / Manager / TimeRecording.pm
index f0c7f429e197537055e692a3768452185445ec15..6992aa10d6345357b4aaad5e50c16e758c21622c 100644 (file)
@@ -7,8 +7,27 @@ use strict;
 
 use parent qw(SL::DB::Helper::Manager);
 
+use SL::DB::Helper::Sorted;
+
 sub object_class { 'SL::DB::TimeRecording' }
 
 __PACKAGE__->make_manager_methods;
 
+
+sub _sort_spec {
+  return ( default => [ 'start_time', 1 ],
+           nulls   => {
+             date       => 'FIRST',
+             start_time => 'FIRST',
+             end_time   => 'FIRST',
+           },
+           columns => { SIMPLE     => 'ALL' ,
+                        start_time => [ 'date', 'start_time' ],
+                        end_time   => [ 'date', 'end_time' ],
+                        customer   => [ 'lower(customer.name)', 'date','start_time'],
+           }
+  );
+}
+
+
 1;