From: Moritz Bunkus Date: Tue, 4 Feb 2014 11:50:10 +0000 (+0100) Subject: SL::DB::Order: verwendete Klassen explizit requiren X-Git-Tag: release-3.2.0beta~491^2~26 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c50f095090b17ace42bfddfe2b50367b4757d1a9;p=kivitendo-erp.git SL::DB::Order: verwendete Klassen explizit requiren --- 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);