X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/70ff48b402fcd79c156c7594c43acf12d78a4480..95f9f85a003a94c70a8daaaef7aef91522050fa6:/SL/DB/Vendor.pm diff --git a/SL/DB/Vendor.pm b/SL/DB/Vendor.pm index 5841edadc..23886eaef 100644 --- a/SL/DB/Vendor.pm +++ b/SL/DB/Vendor.pm @@ -25,11 +25,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->make_manager_class; @@ -44,4 +39,7 @@ sub _before_save_set_vendornumber { return 1; } +sub is_customer { 0 }; +sub is_vendor { 1 }; + 1;