X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fwh.pl;h=5ffa3828931e74da994ba3a21476aa2029dac743;hb=a7b9212927afc0b5b02295db4f7c2fba7318508f;hp=c3aa1f03a2684479b6fd76eecb20f74abaa6ef8f;hpb=71d8ea65a3d131350ca89ebf3609f2a6b7161b3d;p=kivitendo-erp.git diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index c3aa1f03a..5ffa38289 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -67,6 +67,7 @@ use strict; # $locale->text('used') # $locale->text('return_material') # $locale->text('release_material') +# $locale->text('assembled') # -------------------------------------------------------------------- # Transfer @@ -289,7 +290,7 @@ sub transfer_parts { if (!scalar @transfers) { $form->show_generic_information($locale->text('Nothing has been selected for transfer.')); - ::end_of_request(); + $::dispatcher->end_request; } WH->transfer(@transfers); @@ -455,7 +456,7 @@ sub create_assembly { # Anm. jb 18.3. vielleicht auch nur meine unwissenheit in perl-datenstrukturen my %TRANSFER = ( 'transfer_type' => 'assembly', - 'login' => $form->{login}, + 'login' => $::myconfig{login}, 'dst_warehouse_id' => $form->{warehouse_id}, 'dst_bin_id' => $form->{bin_id}, 'chargenumber' => $form->{chargenumber}, @@ -623,7 +624,7 @@ sub remove_parts { if (!scalar @transfers) { $form->show_generic_information($locale->text('Nothing has been selected for removal.')); - ::end_of_request(); + $::dispatcher->end_request; } WH->transfer(@transfers); @@ -972,7 +973,7 @@ sub show_no_warehouses_error { my $msg = $locale->text('No warehouse has been created yet or the quantity of the bins is not configured yet.') . ' '; - if ($main::auth->check_right($form->{login}, 'config')) { + if ($main::auth->check_right($::myconfig{login}, 'config')) { $msg .= $locale->text('You can create warehouses and bins via the menu "System -> Warehouses".'); } else { $msg .= $locale->text('Please ask your administrator to create warehouses and bins.');