Merge branch 'master' into rb-wiederkehrende-rechnungen
[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 use SL::DB::Helper::LinkedRecords;
8 # The calculator hasn't been adjusted for purchase invoices yet.
9 # use SL::DB::Helper::PriceTaxCalculator;
10
11 __PACKAGE__->meta->add_relationship(invoiceitems => { type         => 'one to many',
12                                                       class        => 'SL::DB::InvoiceItem',
13                                                       column_map   => { id => 'trans_id' },
14                                                       manager_args => { with_objects => [ 'part' ] }
15                                                     },
16                                    );
17
18 __PACKAGE__->meta->initialize;
19
20 sub items { goto &invoiceitems; }
21
22 1;