Weitere Feinheiten zum Patch "Verkaeufer und Bearbeiter wurden beim Umwandeln nicht...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 8 Jun 2007 14:22:21 +0000 (14:22 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 8 Jun 2007 14:22:21 +0000 (14:22 +0000)
bin/mozilla/io.pl
bin/mozilla/oe.pl

index 6db2c57..c32509c 100644 (file)
@@ -1129,6 +1129,9 @@ sub order {
   }
   $form->{ordnumber} = $form->{invnumber};
 
+  $form->{old_employee_id} = $form->{employee_id};
+  $form->{old_salesman_id} = $form->{salesman_id};
+
   map { delete $form->{$_} } qw(id printed emailed queued);
   if ($form->{script} eq 'ir.pl' || $form->{type} eq 'request_quotation') {
     $form->{title} = $locale->text('Add Purchase Order');
index c1f0616..f66ad04 100644 (file)
@@ -333,6 +333,14 @@ sub form_header {
 
   $form->{defaultcurrency} = $form->get_default_currency(\%myconfig);
 
+
+  if ($form->{old_employee_id}) {
+    $form->{employee_id} = $form->{old_employee_id};
+  }
+  if ($form->{old_salesman_id}) {
+    $form->{salesman_id} = $form->{old_salesman_id};
+  }
+
   map { $form->{$_} =~ s/\"/&quot;/g }
     qw(ordnumber quonumber shippingpoint shipvia notes intnotes shiptoname
        shiptostreet shiptozipcode shiptocity shiptocountry shiptocontact