Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 96aa399e

Von Jan Büren vor mehr als 3 Jahren hinzugefügt

  • ID 96aa399e04832dae8c16d8159be230b313211b83
  • Vorgänger 2f71c88e
  • Nachfolger 9c8e598e

CVars für Lagerbestand auch in hiddens für den Export

Unterschiede anzeigen:

bin/mozilla/wh.pl
870 870

  
871 871
  my $report = SL::ReportGenerator->new(\%myconfig, $form);
872 872

  
873
  my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
874
  push @columns, map { "cvar_$_->{name}" } @includeable_custom_variables;
875

  
873 876
  my @hidden_variables = map { "l_${_}" } @columns;
874 877
  push @hidden_variables, qw(warehouse_id bin_id partnumber partstypes_id description chargenumber bestbefore qty_op qty qty_unit partunit l_warehousedescription l_bindescription);
875 878
  push @hidden_variables, qw(include_empty_bins subtotal include_invalid_warehouses date);
......
892 895

  
893 896
  my $href = build_std_url('action=generate_report', grep { $form->{$_} } @hidden_variables);
894 897
  $href .= "&maxrows=".$form->{maxrows};
895
  my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
896 898
  my %column_defs_cvars            = map { +"cvar_$_->{name}" => { 'text' => $_->{description} } } @includeable_custom_variables;
897
  push @columns, map { "cvar_$_->{name}" } @includeable_custom_variables;
898 899
  %column_defs = (%column_defs, %column_defs_cvars);
899 900

  
900 901
  map { $column_defs{$_}->{link} = $href . "&page=".$page."&sort=${_}&order=" . Q($_ eq $sort_col ? 1 - $form->{order} : $form->{order}) } @columns;

Auch abrufbar als: Unified diff