kivitendo/SL/DB/PaymentTerm.pm @ 60e1aa55
4fd22b56 | Sven Schöling | package SL::DB::PaymentTerm;
|
||
use strict;
|
||||
use SL::DB::MetaSetup::PaymentTerm;
|
||||
dbbf8923 | Moritz Bunkus | use SL::DB::Manager::PaymentTerm;
|
||
use SL::DB::Helper::ActsAsList;
|
||||
use SL::DB::Helper::TranslatedAttributes;
|
||||
sub validate {
|
||||
my ($self) = @_;
|
||||
my @errors;
|
||||
push @errors, $::locale->text('The description is missing.') if !$self->description;
|
||||
push @errors, $::locale->text('The long description is missing.') if !$self->description_long;
|
||||
4fd22b56 | Sven Schöling | |||
dbbf8923 | Moritz Bunkus | return @errors;
|
||
}
|
||||
4fd22b56 | Sven Schöling | |||
1;
|