Neues DB-Setup für Währungen
[kivitendo-erp.git] / SL / DB / DeliveryOrderItem.pm
index e832ddb..d50a63f 100644 (file)
@@ -12,12 +12,16 @@ use SL::DB::Helper::CustomVariables (
 );
 
 __PACKAGE__->meta->make_manager_class;
+__PACKAGE__->meta->add_relationship(
+  unit_obj       => {
+    type         => 'many to one',
+    class        => 'SL::DB::Unit',
+    column_map   => { unit => 'name' },
+  },
+);
 
-# methods
+__PACKAGE__->meta->initialize;
 
-sub part {
-  # canonial alias for parts.
-  return shift->parts;
-}
+# methods
 
 1;