X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5428f5f6d9dbced453dcfc113f683ceacee6380a..29254bae64b881dba588f7a02027dac0d1c7b022:/bin/mozilla/oe.pl diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 04cb6266c..9bad69ae9 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -48,6 +48,8 @@ use List::MoreUtils qw(uniq any none); use List::Util qw(min max reduce sum); use Data::Dumper; +use SL::Controller::Order; + use SL::DB::Customer; use SL::DB::TaxZone; use SL::DB::PaymentTerm; @@ -184,6 +186,14 @@ sub edit { # editing without stuff to edit? try adding it first if ($form->{rowcount} && !$form->{print_and_save}) { + if ($::instance_conf->get_feature_experimental_order) { + my $c = SL::Controller::Order->new; + $c->action_edit_collective(); + + $main::lxdebug->leave_sub(); + $::dispatcher->end_request; + } + my $id; map { $id++ if $form->{"multi_id_$_"} } (1 .. $form->{rowcount}); if (!$id) { @@ -1228,7 +1238,7 @@ sub orders { my $idx = 1; - my $edit_url = ($::instance_conf->get_feature_experimental) + my $edit_url = ($::instance_conf->get_feature_experimental_order) ? build_std_url('script=controller.pl', 'action=Order/edit', 'type') : build_std_url('action=edit', 'type', 'vc'); @@ -2138,7 +2148,7 @@ sub report_for_todo_list { my $content; if (@{ $quotations }) { - my $edit_url = ($::instance_conf->get_feature_experimental) + my $edit_url = ($::instance_conf->get_feature_experimental_order) ? build_std_url('script=controller.pl', 'action=Order/edit') : build_std_url('script=oe.pl', 'action=edit');