From: Moritz Bunkus Date: Tue, 8 May 2007 12:30:19 +0000 (+0000) Subject: Filterkriterium "Kunden-/Lieferantenname" in Berichten auch beim Umsortieren beibehal... X-Git-Tag: release-2.4.3^2~360 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=12c4c658bc579890462f96832d918337c2b2d484;p=kivitendo-erp.git Filterkriterium "Kunden-/Lieferantenname" in Berichten auch beim Umsortieren beibehalten. Fix für Bug 638. --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 6fd5edd70..4678c2bb5 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -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",