Revision 3dc8c45e
Von Sven Schöling vor fast 13 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
1198 | 1198 |
} |
1199 | 1199 |
} |
1200 | 1200 |
|
1201 |
# soldtotal doesn't make sense with more than one bsooqr option. |
|
1202 |
# so reset it to sold (the most common option), and issue a warning |
|
1203 |
my @bsooqr = qw(sold bought onorder ordered rfq quoted); |
|
1204 |
if ($form->{l_subtotal} && 1 < grep { $form->{$_} } @bsooqr) { |
|
1205 |
my $enabled = first { $form->{$_} } @bsooqr; |
|
1206 |
$form->{$_} = '' for @bsooqr; |
|
1207 |
$form->{$enabled} = 'Y'; |
|
1208 |
|
|
1209 |
push @options, $::locale->text('Subtotal cannot distinguish betweens record types. Only one of the selected record types will be displayed: #1', $optiontexts{$enabled}); |
|
1210 |
} |
|
1211 |
|
|
1201 | 1212 |
IC->all_parts(\%myconfig, \%$form); |
1202 | 1213 |
|
1203 | 1214 |
my @columns = qw( |
Auch abrufbar als: Unified diff
Warenbericht: Wenn subtotal und mehrere bsooqr modi angewählt sind nur einen anzeigen.