]> wagnertech.de Git - mfinanz.git/blob - SL/DB/ReclamationReason.pm
date error in mapping
[mfinanz.git] / SL / DB / ReclamationReason.pm
1 package SL::DB::ReclamationReason;
2
3 use strict;
4
5 use SL::DB::MetaSetup::ReclamationReason;
6 use SL::DB::Manager::ReclamationReason;
7 use SL::DB::Helper::ActsAsList
8
9 __PACKAGE__->meta->initialize;
10
11 sub validate {
12   my ($self) = @_;
13
14   my @errors;
15   if (!$self->name) {
16       push @errors, $::locale->text('The name is missing.');
17   }
18   if (!$self->description) {
19     push @errors, $::locale->text('The description is missing.');
20   }
21   return @errors;
22 }
23
24 1;