Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5aa485a7

Von Sven Schöling vor fast 10 Jahren hinzugefügt

  • ID 5aa485a7c9e050dd112b3c53070a806fe72d2a0b
  • Vorgänger defc4fe6
  • Nachfolger 986282c1

PriceRule: Regeldetails anzeigen

Unterschiede anzeigen:

SL/Controller/PriceRule.pm
145 145
  my $report      = SL::ReportGenerator->new(\%::myconfig, $::form);
146 146
  $self->{report} = $report;
147 147

  
148
  my @columns     = qw(name type priority price discount);
149
  my @sortable    = qw(name type priority price discount);
148
  my @columns     = qw(name type priority price discount items);
149
  my @sortable    = qw(name type priority price discount      );
150 150

  
151 151
  my %column_defs = (
152 152
    name          => { obj_link => sub { $self->url_for(action => 'edit', 'price_rule.id' => $_[0]->id, callback => $callback) } },
......
154 154
    price         => { sub  => sub { $_[0]->price_as_number } },
155 155
    discount      => { sub  => sub { $_[0]->discount_as_number } },
156 156
    obsolete      => { sub  => sub { $_[0]->obsolete_as_bool_yn } },
157
    items         => { sub  => sub { $_[0]->item_summary } },
157 158
  );
158 159

  
159 160
  map { $column_defs{$_}->{text} ||= $::locale->text( $self->models->get_sort_spec->{$_}->{title} ) } keys %column_defs;
......
262 263
      price    => t8('Price'),
263 264
      discount => t8('Discount'),
264 265
      obsolete => t8('Obsolete'),
266
      items    => t8('Rule Details'),
265 267
    },
266 268
  );
267 269
}

Auch abrufbar als: Unified diff