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