7d350c26b90aab90107f788a0e3beea2d5e681ca
[kivitendo-erp.git] / SL / DB / PartsClassification.pm
1 # This file has been auto-generated only because it didn't exist.
2 # Feel free to modify it at will; it will not be overwritten automatically.
3
4 package SL::DB::PartsClassification;
5
6 use strict;
7
8 use SL::DB::MetaSetup::PartsClassification;
9 use SL::DB::Manager::PartsClassification;
10
11 __PACKAGE__->meta->initialize;
12
13 sub validate {
14   my ($self) = @_;
15
16   my @errors;
17   push @errors, $::locale->text('The description is missing.')  if !$self->description;
18   push @errors, $::locale->text('The abbreviation is missing.') if !$self->abbreviation;
19
20   return @errors;
21 }
22
23
24 1;