From ed66198726d850bf181daf3c496c094abde30180 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 8 Sep 2009 17:54:31 +0200 Subject: [PATCH] =?utf8?q?IC::all=5Fparts:=20cv=20und=20quotation=20m?= =?utf8?q?=C3=BCssen=20f=C3=BCr=20externe=20Pr=C3=BCfung=20mit=20nach=20au?= =?utf8?q?ssen=20gebracht=20werden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1147. --- SL/IC.pm | 4 +++- bin/mozilla/ic.pl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SL/IC.pm b/SL/IC.pm index eaa932c00..e3879a448 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -820,6 +820,8 @@ sub all_parts { description => 'p.', qty => 'ioi.', serialnumber => 'ioi.', + quotation => 'apoe.', + cv => 'cv.', ); # if the join condition in these blocks are met, the column @@ -933,7 +935,7 @@ sub all_parts { my $bsooqr = any { $form->{$_} } @oe_flags; my @bsooqr_tokens = (); - push @select_tokens, @qsooqr_flags if $bsooqr; + push @select_tokens, @qsooqr_flags, 'quotation', 'cv' if $bsooqr; push @select_tokens, @deliverydate_flags if $bsooqr && $form->{l_deliverydate}; push @select_tokens, $q_assembly_lastcost if ($form->{searchitems} eq 'assembly') && $form->{l_lastcost}; push @bsooqr_tokens, q|module = 'ir' AND NOT ioi.assemblyitem| if $form->{bought}; diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 1cd8ce5fc..faaa702dc 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1294,7 +1294,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->{customer_id} ne '' ? 'sales_order' : 'purchase_order'), 'id=' . E($ref->{trans_id}), 'callback'); + my $edit_oe_link = build_std_url("script=oe.pl", 'action=edit', 'type=' . E($ref->{cv} eq 'vendor' ? 'purchase_order' : 'sales_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