Revision 0cbac4f7
Von Sven Schöling vor fast 11 Jahren hinzugefügt
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}, |
locale/de/all | ||
---|---|---|
1948 | 1948 |
'Skonto Terms' => 'Zahlungsziel Skonto', |
1949 | 1949 |
'So far you could use one partnumber for severel parts, for example a service and an article.' => 'Bisher war es möglich eine Artikelnummer für mehrere Artikel zu verwenden, zum Beispiel eine Artikelnummer für eine Dienstleistung, eine Ware und ein Erzeugnis.', |
1950 | 1950 |
'Sold' => 'Verkauft', |
1951 |
'Soldtotal does not make sense without any bsooqr options' => 'Option "Menge in gewählten Belegen" ohne gewählte Belege wird ignoriert.', |
|
1951 | 1952 |
'Solution' => 'Lösung', |
1952 | 1953 |
'Sort By' => 'Sortiert nach', |
1953 | 1954 |
'Source' => 'Beleg', |
templates/webpages/ic/generate_report_top.html | ||
---|---|---|
1 |
[%- USE HTML %] |
|
2 |
[%- USE T8 %] |
|
3 |
[%- USE L %] |
|
4 |
[%- PROCESS 'common/flash.html' %] |
|
5 |
|
|
6 |
[% 'Options' | $T8 %]: [% options.join(', ') %] |
Auch abrufbar als: Unified diff
all_parts: Warnung wenn versucht wird l_soldtotal ohne bsooqr aufzurufen