kein use SL::DB::Object in SL::DB::Object
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 21 Jun 2013 16:04:37 +0000 (18:04 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 25 Jun 2013 12:22:33 +0000 (14:22 +0200)
SL/DB/Order.pm

index 00886d6..cf7b076 100644 (file)
@@ -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,