1 package SL::DB::Department;
5 use SL::DB::MetaSetup::Department;
6 use SL::DB::Manager::Department;
10 __PACKAGE__->meta->initialize;
16 push @errors, $::locale->text('The description is missing.') if !$self->description;
24 return undef if !$self->id;
25 my $is_used = SL::DB::Manager::DptTrans->find_by(department_id => $self->id);