Revision c3db1b36
Von Bernd Bleßmann vor mehr als 6 Jahren hinzugefügt
SL/FU.pm | ||
---|---|---|
336 | 336 |
}; |
337 | 337 |
|
338 | 338 |
} elsif ($params{trans_type} eq 'sales_quotation') { |
339 |
my $script = 'oe.pl'; |
|
340 |
my $action = 'edit'; |
|
341 |
if ($::instance_conf->get_feature_experimental) { |
|
342 |
$script = 'controller.pl'; |
|
343 |
$action = 'Order/edit'; |
|
344 |
} |
|
339 | 345 |
$link = { |
340 |
'url' => 'oe.pl?action=edit&type=sales_quotation&id=' . $params{trans_id},
|
|
346 |
'url' => $script . '?action=' . $action . '&type=sales_quotation&id=' . $params{trans_id},
|
|
341 | 347 |
'title' => $locale->text('Sales quotation') . " $params{trans_info}", |
342 | 348 |
}; |
343 | 349 |
|
... | ... | |
356 | 362 |
}; |
357 | 363 |
|
358 | 364 |
} elsif ($params{trans_type} eq 'sales_order') { |
365 |
my $script = 'oe.pl'; |
|
366 |
my $action = 'edit'; |
|
367 |
if ($::instance_conf->get_feature_experimental) { |
|
368 |
$script = 'controller.pl'; |
|
369 |
$action = 'Order/edit'; |
|
370 |
} |
|
359 | 371 |
$link = { |
360 |
'url' => 'oe.pl?action=edit&type=sales_order&id=' . $params{trans_id},
|
|
372 |
'url' => $script . '?action=' . $action . '&type=sales_order&id=' . $params{trans_id},
|
|
361 | 373 |
'title' => $locale->text('Sales Order') . " $params{trans_info}", |
362 | 374 |
}; |
363 | 375 |
|
... | ... | |
386 | 398 |
}; |
387 | 399 |
|
388 | 400 |
} elsif ($params{trans_type} eq 'request_quotation') { |
401 |
my $script = 'oe.pl'; |
|
402 |
my $action = 'edit'; |
|
403 |
if ($::instance_conf->get_feature_experimental) { |
|
404 |
$script = 'controller.pl'; |
|
405 |
$action = 'Order/edit'; |
|
406 |
} |
|
389 | 407 |
$link = { |
390 |
'url' => 'oe.pl?action=edit&type=request_quotation&id=' . $params{trans_id},
|
|
408 |
'url' => $script . '?action=' . $action . '&type=request_quotation&id=' . $params{trans_id},
|
|
391 | 409 |
'title' => $locale->text('Request quotation') . " $params{trans_info}", |
392 | 410 |
}; |
393 | 411 |
|
394 | 412 |
} elsif ($params{trans_type} eq 'purchase_order') { |
413 |
my $script = 'oe.pl'; |
|
414 |
my $action = 'edit'; |
|
415 |
if ($::instance_conf->get_feature_experimental) { |
|
416 |
$script = 'controller.pl'; |
|
417 |
$action = 'Order/edit'; |
|
418 |
} |
|
395 | 419 |
$link = { |
396 |
'url' => 'oe.pl?action=edit&type=purchase_order&id=' . $params{trans_id},
|
|
420 |
'url' => $script . '?action=' . $action . '&type=purchase_order&id=' . $params{trans_id},
|
|
397 | 421 |
'title' => $locale->text('Purchase Order') . " $params{trans_info}", |
398 | 422 |
}; |
399 | 423 |
|
Auch abrufbar als: Unified diff
Auftrags-Controller: weitere Links hierhin bei experimentellen Features