kivitendo/SL/DB/PurchaseInvoice.pm @ 84e1c3e5
82515b2d | Sven Schöling | package SL::DB::PurchaseInvoice;
|
||
use strict;
|
||||
use SL::DB::MetaSetup::PurchaseInvoice;
|
||||
use SL::DB::Manager::PurchaseInvoice;
|
||||
e9fb6244 | Moritz Bunkus | use SL::DB::Helper::LinkedRecords;
|
||
5547891f | Moritz Bunkus | # The calculator hasn't been adjusted for purchase invoices yet.
|
||
# use SL::DB::Helper::PriceTaxCalculator;
|
||||
82515b2d | Sven Schöling | |||
__PACKAGE__->meta->add_relationship(invoiceitems => { type => 'one to many',
|
||||
class => 'SL::DB::InvoiceItem',
|
||||
column_map => { id => 'trans_id' },
|
||||
manager_args => { with_objects => [ 'part' ] }
|
||||
},
|
||||
);
|
||||
__PACKAGE__->meta->initialize;
|
||||
4ac74078 | Moritz Bunkus | sub items { goto &invoiceitems; }
|
||
82515b2d | Sven Schöling | 1;
|