BackgroundJob-Hilfsfunktionen
[kivitendo-erp.git] / SL / DB / PurchaseInvoice.pm
1 package SL::DB::PurchaseInvoice;
2
3 use strict;
4
5 use SL::DB::MetaSetup::PurchaseInvoice;
6 use SL::DB::Manager::PurchaseInvoice;
7
8 __PACKAGE__->meta->add_relationship(invoiceitems => { type         => 'one to many',
9                                                       class        => 'SL::DB::InvoiceItem',
10                                                       column_map   => { id => 'trans_id' },
11                                                       manager_args => { with_objects => [ 'part' ] }
12                                                     },
13                                    );
14
15 __PACKAGE__->meta->initialize;
16
17 1;