PeriodicInvoices: employee aus Quellauftrag setzen
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 14 Nov 2014 10:01:03 +0000 (11:01 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 14 Nov 2014 10:01:58 +0000 (11:01 +0100)
SL/BackgroundJob/CreatePeriodicInvoices.pm

index 91e8eff..4777025 100644 (file)
@@ -151,6 +151,7 @@ sub _create_periodic_invoice {
 
     $invoice->assign_attributes(deliverydate => $period_start_date,
                                 intnotes     => $intnotes,
+                                employee     => $order->employee, # new_from sets employee to import user
                                );
 
     map { _replace_vars($invoice, $time_period_vars, $_) } qw(notes intnotes transaction_description);