From c50f095090b17ace42bfddfe2b50367b4757d1a9 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 4 Feb 2014 12:50:10 +0100 Subject: [PATCH] SL::DB::Order: verwendete Klassen explizit requiren --- SL/DB/Order.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index a3c9de0f5..89f602eb7 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -131,6 +131,7 @@ sub convert_to_invoice { my $invoice; if (!$self->db->do_transaction(sub { + require SL::DB::Invoice; $invoice = SL::DB::Invoice->new_from($self)->post(%params) || die; $self->link_to_record($invoice); $self->update_attributes(closed => 1); -- 2.20.1