Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0cbac4f7

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

  • ID 0cbac4f7706f3e24f98d6f320278c25878ef4b9b
  • Vorgänger 0ff2b7fc
  • Nachfolger eabcf7e4

all_parts: Warnung wenn versucht wird l_soldtotal ohne bsooqr aufzurufen

Unterschiede anzeigen:

bin/mozilla/ic.pl
1194 1194

  
1195 1195
  # soldtotal doesn't make sense with more than one bsooqr option.
1196 1196
  # so reset it to sold (the most common option), and issue a warning
1197
  # ...
1198
  # also it doesn't make sense without bsooqr. disable and issue a warning too
1197 1199
  my @bsooqr = qw(sold bought onorder ordered rfq quoted);
1198 1200
  if ($form->{l_subtotal} && 1 < grep { $form->{$_} } @bsooqr) {
1199 1201
    my $enabled       = first { $form->{$_} } @bsooqr;
......
1202 1204

  
1203 1205
    push @options, $::locale->text('Subtotal cannot distinguish betweens record types. Only one of the selected record types will be displayed: #1', $optiontexts{$enabled});
1204 1206
  }
1207
  if ($form->{l_soldtotal} && !grep { $form->{$_} } @bsooqr) {
1208
    delete $form->{l_soldtotal};
1209

  
1210
    flash('warning', $::locale->text('Soldtotal does not make sense without any bsooqr options'));
1211
  }
1205 1212

  
1206 1213
  IC->all_parts(\%myconfig, \%$form);
1207 1214

  
......
1266 1273
    'assembly' => $locale->text('assembly_list'),
1267 1274
  );
1268 1275

  
1269
  $report->set_options('top_info_text'         => $locale->text('Options') . ': ' . join(', ', grep $_, @options),
1276
  $report->set_options('raw_top_info_text'     => $form->parse_html_template('ic/generate_report_top', { options => \@options }),
1270 1277
                       'raw_bottom_info_text'  => $form->parse_html_template('ic/generate_report_bottom'),
1271 1278
                       'output_format'         => 'HTML',
1272 1279
                       'title'                 => $form->{title},

Auch abrufbar als: Unified diff