Merge branch 'b-3.6.1' into mebil
[kivitendo-erp.git] / SL / DB / DeliveryOrderItemsStock.pm
index 97fb2a1..dc6f00d 100644 (file)
@@ -13,6 +13,11 @@ __PACKAGE__->meta->add_relationship(
     class        => 'SL::DB::Inventory',
     column_map   => { id => 'delivery_order_items_stock_id' },
   },
+  unit_obj => {
+    type         => 'many to one',
+    class        => 'SL::DB::Unit',
+    column_map   => { unit => 'name' },
+  },
 );
 
 __PACKAGE__->meta->initialize;