1 package SL::DB::InvoiceItem;
5 use SL::DB::MetaSetup::InvoiceItem;
6 use SL::DB::Helper::CustomVariables (
7 sub_module => 'invoice',
10 parts_id => 'SL::DB::Part',
14 __PACKAGE__->meta->add_relationship(
17 class => 'SL::DB::Part',
18 column_map => { parts_id => 'id' },
22 class => 'SL::DB::PriceFactor',
23 column_map => { price_factor_id => 'id' },
27 class => 'SL::DB::Unit',
28 column_map => { unit => 'name' },
32 # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
33 __PACKAGE__->meta->make_manager_class;
35 __PACKAGE__->meta->initialize;