X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fwh.pl;h=c3aa1f03a2684479b6fd76eecb20f74abaa6ef8f;hb=094307a8ce3e7680a5b14ef17b5c1094a2555009;hp=15f58fc5dc3a3a6264642d7e964f1d747f52f761;hpb=6ac47be4e3e318ea212ca595195b0b55a9c386a3;p=kivitendo-erp.git diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index 15f58fc5d..c3aa1f03a 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -833,15 +833,19 @@ sub generate_report { my @options; # dispatch all options my $dispatch_options = { - partnumber => sub { push @options, $locale->text('Partnumber') . " : $form->{partnumber}"}, - description => sub { push @options, $locale->text('Description') . " : $form->{description}"}, - chargenumber => sub { push @options, $locale->text('Charge Number') . " : $form->{chargenumber}"}, - bestbefore => sub { push @options, $locale->text('Best Before') . " : $form->{bestbefore}"}, - date => sub { push @options, $locale->text('Date') . " : $form->{date}"}, + warehouse_id => sub { push @options, $locale->text('Warehouse') . " : " . + SL::DB::Manager::Warehouse->find_by(id => $form->{warehouse_id})->description}, + bin_id => sub { push @options, $locale->text('Bin') . " : " . + SL::DB::Manager::Bin->find_by(id => $form->{bin_id})->description}, + partnumber => sub { push @options, $locale->text('Partnumber') . " : $form->{partnumber}"}, + description => sub { push @options, $locale->text('Description') . " : $form->{description}"}, + chargenumber => sub { push @options, $locale->text('Charge Number') . " : $form->{chargenumber}"}, + bestbefore => sub { push @options, $locale->text('Best Before') . " : $form->{bestbefore}"}, + date => sub { push @options, $locale->text('Date') . " : $form->{date}"}, include_invalid_warehouses => sub { push @options, $locale->text('Include invalid warehouses ')}, }; foreach (keys %filter) { - defined $dispatch_options->{$_} && $dispatch_options->{$_}->(); + $dispatch_options->{$_}->() if $dispatch_options->{$_}; } # / end show filter stuff also in report