1 package SL::DB::SepaExportItem;
5 use SL::DB::MetaSetup::SepaExportItem;
7 __PACKAGE__->meta->initialize;
9 # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
10 __PACKAGE__->meta->make_manager_class;
13 my ($self, $other) = @_;
15 return 1 if $self->execution_date && !$other->execution_date;
16 return -1 if !$self->execution_date && $other->execution_date;
19 $result = $self->execution_date <=> $other->execution_date if $self->execution_date;
20 return $result || ($self->sepa_export_id <=> $other->sepa_export_id) || ($self->id <=> $other->id);