X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=SL%2FDB%2FPurchaseInvoice.pm;h=9c6f54e86e8f50beeea6abf819fd110ab3327a4e;hb=dd6282f6e20d531511ae35cadc491a8c7ab8bad5;hp=a06a3b639ab8ca620e995eb6ad286f642717b845;hpb=78034f2431414b414d171b720bc0438635e19ae5;p=kivitendo-erp.git diff --git a/SL/DB/PurchaseInvoice.pm b/SL/DB/PurchaseInvoice.pm index a06a3b639..9c6f54e86 100644 --- a/SL/DB/PurchaseInvoice.pm +++ b/SL/DB/PurchaseInvoice.pm @@ -4,6 +4,9 @@ use strict; use SL::DB::MetaSetup::PurchaseInvoice; use SL::DB::Manager::PurchaseInvoice; +use SL::DB::Helper::LinkedRecords; +# The calculator hasn't been adjusted for purchase invoices yet. +# use SL::DB::Helper::PriceTaxCalculator; __PACKAGE__->meta->add_relationship(invoiceitems => { type => 'one to many', class => 'SL::DB::InvoiceItem', @@ -14,4 +17,7 @@ __PACKAGE__->meta->add_relationship(invoiceitems => { type => 'one to ma __PACKAGE__->meta->initialize; +sub items { goto &invoiceitems; } +sub payment_term { goto &payment; } + 1;