Angebote/Aufträge drucken: auch das Order-Objekt ausliefern
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 23 Jun 2014 11:27:49 +0000 (13:27 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 23 Jun 2014 11:31:12 +0000 (13:31 +0200)
SL/OE.pm

index 326e89c..e36a635 100644 (file)
--- a/SL/OE.pm
+++ b/SL/OE.pm
@@ -1387,6 +1387,8 @@ sub order_details {
   $form->{delivery_term} = SL::DB::Manager::DeliveryTerm->find_by(id => $form->{delivery_term_id} || undef);
   $form->{delivery_term}->description_long($form->{delivery_term}->translated_attribute('description_long', $form->{language_id})) if $form->{delivery_term} && $form->{language_id};
 
+  $::form->{order} = SL::DB::Manager::Order->find_by(id => $::form->{id});
+
   $main::lxdebug->leave_sub();
 }