Filterkriterium "Kunden-/Lieferantenname" in Berichten auch beim Umsortieren beibehal...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 8 May 2007 12:30:19 +0000 (12:30 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 8 May 2007 12:30:19 +0000 (12:30 +0000)
bin/mozilla/oe.pl

index 6fd5edd..4678c2b 100644 (file)
@@ -1578,12 +1578,6 @@ $jsscript
 sub orders {
   $lxdebug->enter_sub();
 
-  # split vendor / customer
-  ($form->{ $form->{vc} }, $form->{"$form->{vc}_id"}) =
-    split(/--/, $form->{ $form->{vc} });
-
-  OE->transactions(\%myconfig, \%$form);
-
   $ordnumber = ($form->{type} =~ /_order$/) ? "ordnumber" : "quonumber";
 
   # construct href
@@ -1591,11 +1585,18 @@ sub orders {
     qw(type vc login password transdatefrom transdateto
        open closed notdelivered delivered department
        transaction_description);
+  push @fields, $form->{vc};
   $href = "$form->{script}?action=orders&"
     . join("&", map { "${_}=" . E($form->{$_}) } @fields)
     . "&${ordnumber}=" . E($form->{$ordnumber});
   $callback = $href;
 
+  # split vendor / customer
+  ($form->{ $form->{vc} }, $form->{"$form->{vc}_id"}) =
+    split(/--/, $form->{ $form->{vc} });
+
+  OE->transactions(\%myconfig, \%$form);
+
   @columns = (
     "transdate",               "reqdate",
     "id",                      "$ordnumber",