From: G. Richardson Date: Tue, 9 Aug 2016 13:43:17 +0000 (+0200) Subject: inventory relationship für DeliveryOrderItemsStock X-Git-Tag: release-3.5.4~1994 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fd3d9c3c232923feffbc8ac4a2be895a274b34a3;p=kivitendo-erp.git inventory relationship für DeliveryOrderItemsStock --- diff --git a/SL/DB/DeliveryOrderItemsStock.pm b/SL/DB/DeliveryOrderItemsStock.pm index 8d8c72fcf..97fb2a19a 100644 --- a/SL/DB/DeliveryOrderItemsStock.pm +++ b/SL/DB/DeliveryOrderItemsStock.pm @@ -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.