1 package SL::DB::SepaExportItem;
 
   5 use SL::DB::MetaSetup::SepaExportItem;
 
   7 # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
 
   8 __PACKAGE__->meta->make_manager_class;
 
  11   my ($self, $other) = @_;
 
  13   return  1 if  $self->execution_date && !$other->execution_date;
 
  14   return -1 if !$self->execution_date &&  $other->execution_date;
 
  17   $result    = $self->execution_date <=> $other->execution_date if $self->execution_date;
 
  18   return $result || ($self->sepa_export_id <=> $other->sepa_export_id) || ($self->id <=> $other->id);