Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[kivitendo-erp.git] / SL / DB / DeliveryOrderItem.pm
1 package SL::DB::DeliveryOrderItem;
2
3 use strict;
4
5 use SL::DB::MetaSetup::DeliveryOrderItem;
6 use SL::DB::Helper::CustomVariables (
7   sub_module  => 'delivery_order_item',
8   cvars_alias => 1,
9   overloads   => {
10     parts_id => 'SL::DB::Part',
11   },
12 );
13
14 __PACKAGE__->meta->make_manager_class;
15 __PACKAGE__->meta->add_relationship(
16   unit_obj       => {
17     type         => 'many to one',
18     class        => 'SL::DB::Unit',
19     column_map   => { unit => 'name' },
20   },
21 );
22
23 __PACKAGE__->meta->initialize;
24
25 # methods
26
27 1;