From: Sven Schöling Date: Fri, 21 Jun 2013 16:04:37 +0000 (+0200) Subject: kein use SL::DB::Object in SL::DB::Object X-Git-Tag: release-3.1.0beta1~278 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=71e6f43b87c09b87c7916d9236a37b9befcefedc;p=kivitendo-erp.git kein use SL::DB::Object in SL::DB::Object --- diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index 00886d67e..cf7b07610 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -9,7 +9,6 @@ use List::Util qw(max); use SL::DB::MetaSetup::Order; use SL::DB::Manager::Order; -use SL::DB::Invoice; use SL::DB::Helper::FlattenToForm; use SL::DB::Helper::LinkedRecords; use SL::DB::Helper::PriceTaxCalculator; @@ -84,6 +83,7 @@ sub invoices { if ($self->quotation) { return []; } else { + require SL::DB::Invoice; return SL::DB::Manager::Invoice->get_all( query => [ ordnumber => $self->ordnumber,