From 71e6f43b87c09b87c7916d9236a37b9befcefedc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 21 Jun 2013 18:04:37 +0200 Subject: [PATCH] kein use SL::DB::Object in SL::DB::Object --- SL/DB/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1