Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b184cc2b

Von Thomas Heck vor etwa 12 Jahren hinzugefügt

  • ID b184cc2b83eea6b02445ca7a24446c96a70636f6
  • Vorgänger c746b63a
  • Nachfolger 30cdb38f

Bei numerischen CVars die Filteroptionen mit übergeben.

fixt #1864

Unterschiede anzeigen:

bin/mozilla/ct.pl
209 209
      addr_city business_id
210 210
    ), "$form->{db}number",
211 211
    map({ "cvar_$_->{name}" } @searchable_custom_variables),
212
    map({'cvar_'. $_->{name} .'_qtyop'} grep({$_->{type} eq 'number'} @searchable_custom_variables)),
212 213
    map({ "l_$_" } @columns),
213 214
  );
214 215

  
bin/mozilla/ic.pl
1238 1238
  map { $column_defs{$_}->{visible} ||= $form->{"l_$_"} ? 1 : 0 } @columns;
1239 1239
  map { $column_defs{$_}->{align}   = 'right' } qw(onhand sellprice listprice lastcost linetotalsellprice linetotallastcost linetotallistprice rop weight soldtotal), @pricegroup_columns;
1240 1240

  
1241
  my @hidden_variables = (qw(l_subtotal l_linetotal searchitems itemstatus bom l_pricegroups), @itemstatus_keys, @callback_keys,
1242
                              map({ "cvar_$_->{name}" } @searchable_custom_variables), map { "l_$_" } @columns);
1241
  my @hidden_variables = (
1242
    qw(l_subtotal l_linetotal searchitems itemstatus bom l_pricegroups),
1243
    @itemstatus_keys,
1244
    @callback_keys,
1245
    map({ "cvar_$_->{name}" } @searchable_custom_variables),
1246
    map({'cvar_'. $_->{name} .'_qtyop'} grep({$_->{type} eq 'number'} @searchable_custom_variables)),
1247
    map({ "l_$_" } @columns),
1248
  );
1243 1249

  
1244 1250
  my $callback         = build_std_url('action=generate_report', grep { $form->{$_} } @hidden_variables);
1245 1251

  
bin/mozilla/projects.pl
121 121
  my @columns      = qw(projectnumber description active);
122 122

  
123 123
  my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
124
  my @searchable_custom_variables  = grep { $_->{searchable} }  @{ $cvar_configs };
124 125
  my %column_defs_cvars            = ();
125 126
  foreach (@includeable_custom_variables) {
126 127
    $column_defs_cvars{"cvar_$_->{name}"} = {
......
132 133
  push @columns, map { "cvar_$_->{name}" } @includeable_custom_variables;
133 134

  
134 135

  
135
  my @hidden_vars  = ('filter', map { ('cvar_'. $_->{name} , 'l_cvar_'. $_->{name}) } @includeable_custom_variables);
136
  my @hidden_vars  = (
137
    'filter',
138
    map({ ('cvar_'. $_->{name} , 'l_cvar_'. $_->{name}) } @includeable_custom_variables),
139
    map({'cvar_'. $_->{name} .'_qtyop'} grep({$_->{type} eq 'number'} @searchable_custom_variables)),
140
  );
136 141
  my $href         = build_std_url('action=project_report', @hidden_vars);
137 142

  
138 143

  

Auch abrufbar als: Unified diff