From 21e3b9697fa7e9481b79d0f16ef8cc5d0892f299 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 6 Apr 2009 17:34:21 +0000 Subject: [PATCH] purchase_order/sales_order in den Links im bsooqr Modus der Waren/Dienstleistungen Suche setzen. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 920. --- bin/mozilla/ic.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 2e2701c04..5f16184e8 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1239,7 +1239,7 @@ sub generate_report { # set module stuff if ($ref->{module} eq 'oe') { - my $edit_oe_link = build_std_url("script=oe.pl", 'action=edit', 'type=' . E($ref->{type}), 'id=' . E($ref->{trans_id}), 'callback'); + my $edit_oe_link = build_std_url("script=oe.pl", 'action=edit', 'type=' . E($ref->{customer_id} ne '' ? 'sales_order' : 'purchase_order'), 'id=' . E($ref->{trans_id}), 'callback'); $row->{ordnumber}{link} = $edit_oe_link; $row->{quonumber}{link} = $edit_oe_link if (!$ref->{ordnumber}); -- 2.20.1