projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sortieren von Steuerzonen in Belegen
[kivitendo-erp.git]
/
SL
/
DB
/
TaxZone.pm
diff --git
a/SL/DB/TaxZone.pm
b/SL/DB/TaxZone.pm
index
7e0f2e7
..
ad96ee2
100644
(file)
--- a/
SL/DB/TaxZone.pm
+++ b/
SL/DB/TaxZone.pm
@@
-6,8
+6,21
@@
package SL::DB::TaxZone;
use strict;
use SL::DB::MetaSetup::TaxZone;
use strict;
use SL::DB::MetaSetup::TaxZone;
+use SL::DB::Manager::TaxZone;
+use SL::DB::Helper::ActsAsList;
+
+__PACKAGE__->meta->initialize;
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
+#__PACKAGE__->meta->make_manager_class;
+
+sub validate {
+ my ($self) = @_;
+
+ my @errors;
+ push @errors, $::locale->text('The description is missing.') if !$self->description;
+
+ return @errors;
+}
1;
1;