Bugfix für 2275 Verkäuferinformationen im Druck kommen aus der Authdatenbank
[kivitendo-erp.git] / SL / DB / InvoiceItem.pm
index 016f945..8f9a4dd 100644 (file)
@@ -7,13 +7,16 @@ use SL::DB::Helper::CustomVariables (
   sub_module  => 'invoice',
   cvars_alias => 1,
   overloads   => {
-    parts_id => 'SL::DB::Part',
+    parts_id => {
+     class => 'SL::DB::Part',
+     module => 'IC',
+    },
   },
 );
 
 __PACKAGE__->meta->add_relationship(
   unit_obj       => {
-    type         => 'one to one',
+    type         => 'many to one',
     class        => 'SL::DB::Unit',
     column_map   => { unit => 'name' },
   },
@@ -24,9 +27,4 @@ __PACKAGE__->meta->make_manager_class;
 
 __PACKAGE__->meta->initialize;
 
-sub part {
-  # canonial alias for parts.
-  goto &parts;
-}
-
 1;