From: Sven Schöling Date: Mon, 6 Apr 2009 17:34:21 +0000 (+0000) Subject: purchase_order/sales_order in den Links im bsooqr Modus der Waren/Dienstleistungen... X-Git-Tag: release-2.6.0beta2~114 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=21e3b9697fa7e9481b79d0f16ef8cc5d0892f299;p=kivitendo-erp.git purchase_order/sales_order in den Links im bsooqr Modus der Waren/Dienstleistungen Suche setzen. Fix für Bug 920. --- 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});