inventory relationship für DeliveryOrderItemsStock
authorG. Richardson <information@kivitendo-premium.de>
Tue, 9 Aug 2016 13:43:17 +0000 (15:43 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Mon, 17 Oct 2016 15:46:50 +0000 (17:46 +0200)
SL/DB/DeliveryOrderItemsStock.pm

index 8d8c72f..97fb2a1 100644 (file)
@@ -7,6 +7,14 @@ use strict;
 
 use SL::DB::MetaSetup::DeliveryOrderItemsStock;
 
+__PACKAGE__->meta->add_relationship(
+  inventory => {
+    type         => 'one to one',
+    class        => 'SL::DB::Inventory',
+    column_map   => { id => 'delivery_order_items_stock_id' },
+  },
+);
+
 __PACKAGE__->meta->initialize;
 
 # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.