From 3fe0232ef0db9011d872bfa2793eb625f0a69500 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 12 Oct 2015 14:00:07 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20Hack:=20Link=20zum=20neue?= =?utf8?q?n=20Controller=20aus=20Auftragsliste=20f=C3=BCr=20Einkauf.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 4c92067ee..c04eb1b45 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -866,7 +866,7 @@ sub orders { $form->{l_open} = $form->{l_closed} = "Y" if ($form->{open} && $form->{closed}); $form->{l_delivered} = "Y" if ($form->{delivered} && $form->{notdelivered}); $form->{l_periodic_invoices} = "Y" if ($form->{periodic_invoices_active} && $form->{periodic_invoices_inactive}); - $form->{l_edit_new} = "Y" if ($form->{type} eq 'sales_order'); + $form->{l_edit_new} = "Y" if (any { $form->{type} eq $_ } qw(sales_order purchase_order)); map { $form->{"l_${_}"} = 'Y' } qw(order_probability expected_billing_date expected_netamount) if $form->{l_order_probability_expected_billing_date}; my $attachment_basename; @@ -1090,7 +1090,7 @@ sub orders { $row->{$ordnumber}->{link} = $edit_url . "&id=" . E($oe->{id}) . "&callback=${callback}"; $row->{edit_new}->{data} = $oe->{ordnumber}; - $row->{edit_new}->{link} = build_std_url('script=controller.pl', 'action=Order/edit', 'type=sales_order', 'id=' . E($oe->{id})); + $row->{edit_new}->{link} = build_std_url('script=controller.pl', 'action=Order/edit', "type=$form->{type}", 'id=' . E($oe->{id})); my $row_set = [ $row ]; -- 2.20.1