1 package SL::DB::PurchaseInvoice;
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;
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' ] }
18 __PACKAGE__->meta->initialize;
20 sub items { goto &invoiceitems; }