Nachtrag zu commit 2879330bd173831981bdd8b25fc1900292efaeac
authorBernd Blessmann <bibi@online.de>
Tue, 10 Jan 2012 12:12:38 +0000 (13:12 +0100)
committerBernd Blessmann <bibi@online.de>
Tue, 10 Jan 2012 12:12:38 +0000 (13:12 +0100)
Währung soll Workflow über Lieferschein überleben.

bin/mozilla/do.pl

index 2079533..9e70935 100644 (file)
@@ -174,7 +174,7 @@ sub order_links {
   DO->retrieve('vc'  => $form->{vc},
                'ids' => $form->{id});
 
-  $form->backup_vars(qw(payment_id language_id taxzone_id salesman_id taxincluded cp_id intnotes));
+  $form->backup_vars(qw(payment_id language_id taxzone_id salesman_id taxincluded cp_id intnotes currency));
   $form->{shipto} = 1 if $form->{id};
 
   # get customer / vendor
@@ -187,6 +187,7 @@ sub order_links {
   }
 
   $form->restore_vars(qw(payment_id language_id taxzone_id intnotes cp_id));
+  $form->restore_vars(qw(currency)) if ($form->{id} || $form->{convert_from_oe_ids});
   $form->restore_vars(qw(taxincluded)) if $form->{id};
   $form->restore_vars(qw(salesman_id)) if $editing;