marei: new koma-names + fallback for outdated versions
[kivitendo-erp.git] / SL / DB / RequirementSpecVersion.pm
1 package SL::DB::RequirementSpecVersion;
2
3 use strict;
4
5 use SL::DB::MetaSetup::RequirementSpecVersion;
6 use SL::Locale::String;
7
8 __PACKAGE__->meta->initialize;
9
10 # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
11 __PACKAGE__->meta->make_manager_class;
12
13 sub validate {
14   my ($self) = @_;
15
16   my @errors;
17   push @errors, t8('The version number is missing.') if !$self->version_number;
18   push @errors, t8('The description is missing.')    if !$self->description;
19
20   return @errors;
21 }
22
23 1;