]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/DeliveryPlan.pm
Auth: Unterstützung für multiple Authentifizierungsbackends
[mfinanz.git] / SL / Controller / DeliveryPlan.pm
index 6e6eed403ee1eaebaf58eb7999839b5269445fce..f8d5d03c481023e263e2e5029eedde4dc05c363e 100644 (file)
@@ -15,7 +15,6 @@ use SL::DBUtils ();
 use Carp;
 
 use Rose::Object::MakeMethods::Generic (
-  scalar => [ qw(db_args flat_filter) ],
   'scalar --get_set_init' => [ qw(models all_edit_right vc use_linked_items all_employees all_businesses all_departments) ],
 );
 
@@ -369,7 +368,11 @@ sub link_to {
     my $vc     = $object->is_sales ? 'customer' : 'vendor';
     my $id     = $object->id;
 
-    return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
+    if ($::instance_conf->get_feature_experimental_order) {
+      return "controller.pl?action=Order/$action&type=$type&id=$id";
+    } else {
+      return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
+    }
   }
   if ($object->isa('SL::DB::Part')) {
     my $id     = $object->id;