X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FCustomer.pm;h=36bddc0c78c6464fdaf757960ba3ec76a9b20e1c;hb=5b192e717db8efbf4b76162797b08cb65fc4922f;hp=f9f890167b39c384e4004cd04e14d60119ca652a;hpb=e7d2012dd91644d84e9c2b281f1c7b9836180682;p=kivitendo-erp.git diff --git a/SL/DB/Customer.pm b/SL/DB/Customer.pm index f9f890167..36bddc0c7 100644 --- a/SL/DB/Customer.pm +++ b/SL/DB/Customer.pm @@ -26,11 +26,6 @@ __PACKAGE__->meta->add_relationship( column_map => { id => 'cp_cv_id' }, manager_args => { sort_by => 'lower(contacts.cp_name)' }, }, - business => { - type => 'one to one', - class => 'SL::DB::Business', - column_map => { business_id => 'id' }, - }, ); __PACKAGE__->meta->initialize; @@ -56,4 +51,7 @@ sub displayable_name { return join ' ', grep $_, $self->customernumber, $self->name; } +sub is_customer { 1 }; +sub is_vendor { 0 }; + 1;