From: G. Richardson Date: Mon, 17 Oct 2016 15:18:30 +0000 (+0200) Subject: Relationship delivery_order_stock_entries für DeliveryOrderItem X-Git-Tag: release-3.5.4~1992 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=201c9038c6c64d91b9be59991b6b6449c33a0d4f;p=kivitendo-erp.git Relationship delivery_order_stock_entries für DeliveryOrderItem --- diff --git a/SL/DB/DeliveryOrderItem.pm b/SL/DB/DeliveryOrderItem.pm index ba2c2e099..bac466017 100644 --- a/SL/DB/DeliveryOrderItem.pm +++ b/SL/DB/DeliveryOrderItem.pm @@ -19,6 +19,17 @@ use SL::DB::Helper::CustomVariables ( __PACKAGE__->meta->make_manager_class; +__PACKAGE__->meta->add_relationship( + delivery_order_stock_entries => { + type => 'one to many', + class => 'SL::DB::DeliveryOrderItemsStock', + column_map => { id => 'delivery_order_item_id' }, + manager_args => { + with_objects => [ 'inventory' ] + }, + }, +); + __PACKAGE__->meta->initialize; __PACKAGE__->configure_acts_as_list(group_by => [qw(delivery_order_id)]);