projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Beim jedem Speichern von Kunden/Lieferanten prüfen, ob der Name angegeben ist.
[kivitendo-erp.git]
/
SL
/
DB
/
Customer.pm
diff --git
a/SL/DB/Customer.pm
b/SL/DB/Customer.pm
index
e3e30dd
..
048db7c
100644
(file)
--- a/
SL/DB/Customer.pm
+++ b/
SL/DB/Customer.pm
@@
-41,6
+41,15
@@
sub _before_save_set_customernumber {
return 1;
}
+sub validate {
+ my ($self) = @_;
+
+ my @errors;
+ push @errors, $::locale->text('The customer name is missing.') if !$self->name;
+
+ return @errors;
+}
+
sub short_address {
my ($self) = @_;