]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Customer.pm
Task-Server: Mandantenfähigkeit
[mfinanz.git] / SL / DB / Customer.pm
index e3e30ddff6c2e59115579703d207050cecab7daf..048db7c101fb5e008f37263d9120197597dc6ec2 100644 (file)
@@ -41,6 +41,15 @@ sub _before_save_set_customernumber {
   return 1;
 }
 
   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) = @_;
 
 sub short_address {
   my ($self) = @_;