Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[kivitendo-erp.git] / SL / DB / DeliveryTerm.pm
1 package SL::DB::DeliveryTerm;
2
3 use strict;
4
5 use SL::DB::MetaSetup::DeliveryTerm;
6 use SL::DB::Manager::DeliveryTerm;
7 use SL::DB::Helper::ActsAsList;
8 use SL::DB::Helper::TranslatedAttributes;
9
10 __PACKAGE__->meta->initialize;
11
12 sub validate {
13   my ($self) = @_;
14
15   my @errors;
16   push @errors, $::locale->text('The description is missing.')      if !$self->description;
17   push @errors, $::locale->text('The long description is missing.') if !$self->description_long;
18
19   return @errors;
20 }
21
22 1;