From 46b1d1ce939180e1e5f603a7a0beab9b6b09f199 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 23 Jan 2017 16:50:47 +0100 Subject: [PATCH] IC: alte ic.pl edit links korrigiert --- SL/Controller/DeliveryPlan.pm | 2 +- SL/Controller/DeliveryValueReport.pm | 2 +- SL/Controller/Inventory.pm | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SL/Controller/DeliveryPlan.pm b/SL/Controller/DeliveryPlan.pm index bb4514d7a..06cfda935 100644 --- a/SL/Controller/DeliveryPlan.pm +++ b/SL/Controller/DeliveryPlan.pm @@ -414,7 +414,7 @@ sub link_to { } if ($object->isa('SL::DB::Part')) { my $id = $object->id; - return "ic.pl?action=$action&id=$id"; + return "controller.pl?action=Part/$action&part.id=$id"; } if ($object->isa('SL::DB::Customer')) { my $id = $object->id; diff --git a/SL/Controller/DeliveryValueReport.pm b/SL/Controller/DeliveryValueReport.pm index 05a1064fe..61d950d17 100644 --- a/SL/Controller/DeliveryValueReport.pm +++ b/SL/Controller/DeliveryValueReport.pm @@ -243,7 +243,7 @@ sub link_to { } if ($object->isa('SL::DB::Part')) { my $id = $object->id; - return "ic.pl?action=$action&id=$id"; + return "controller.pl?action=Part/$action&part.id=$id"; } if ($object->isa('SL::DB::Customer')) { my $id = $object->id; diff --git a/SL/Controller/Inventory.pm b/SL/Controller/Inventory.pm index 6a7dadc4f..3306aa19c 100644 --- a/SL/Controller/Inventory.pm +++ b/SL/Controller/Inventory.pm @@ -384,7 +384,6 @@ sub make_row_result { $row->{averconsumed}->{data} = $row->{consumed}->{data}*30/$days ; map { $row->{$_}->{data} = $form->format_amount($myconfig,$row->{$_}->{data},2); } $self->getnumcolumns(); $row->{partnumber}->{link} = 'controller.pl?action=Part/edit&part.id' . $partid; -# $row->{partdescription}->{link} = 'ic.pl?action=edit&id='.$partid; } sub action_stock { -- 2.20.1