Revision f16abae9
Von Moritz Bunkus vor fast 18 Jahren hinzugefügt
SL/User.pm | ||
---|---|---|
1092 | 1092 |
dbname dbuser dbpasswd email fax name numberformat in_numberformat password |
1093 | 1093 |
printer role sid signature stylesheet tel templates vclimit angebote bestellungen rechnungen |
1094 | 1094 |
anfragen lieferantenbestellungen einkaufsrechnungen taxnumber co_ustid duns menustyle |
1095 |
template_format copies show_form_details); |
|
1095 |
template_format default_media default_printer_id copies show_form_details);
|
|
1096 | 1096 |
|
1097 | 1097 |
$main::lxdebug->leave_sub(); |
1098 | 1098 |
|
bin/mozilla/am.pl | ||
---|---|---|
2858 | 2858 |
if (!$myconfig{"template_format"}) { |
2859 | 2859 |
$myconfig{"template_format"} = "pdf"; |
2860 | 2860 |
} |
2861 |
$template_format = ""; |
|
2861 |
my $template_format = "";
|
|
2862 | 2862 |
foreach $item (@formats) { |
2863 | 2863 |
$template_format .= |
2864 | 2864 |
"<option value=\"$item->{value}\"" . |
... | ... | |
2867 | 2867 |
">" . H($item->{"name"}) . "</option>"; |
2868 | 2868 |
} |
2869 | 2869 |
|
2870 |
if (!$myconfig{"default_media"}) { |
|
2871 |
$myconfig{"default_media"} = "screen"; |
|
2872 |
} |
|
2873 |
my %selected = ($myconfig{"default_media"} => "selected"); |
|
2874 |
my $default_media = qq| |
|
2875 |
<option value="screen" $selected{'screen'}>| . $locale->text("Screen") . qq|</option> |
|
2876 |
<option value="printer" $selected{'printer'}>| . $locale->text("Printer") . qq|</option> |
|
2877 |
<option value="queue" $selected{'queue'}>| . $locale->text("Queue") . qq|</option> |
|
2878 |
|; |
|
2879 |
|
|
2880 |
%selected = (); |
|
2881 |
$selected{$myconfig{"default_printer_id"}} = "selected" |
|
2882 |
if ($myconfig{"default_printer_id"}); |
|
2883 |
my $default_printer = qq|<option></option>|; |
|
2884 |
AM->printer(\%myconfig, $form); |
|
2885 |
foreach my $printer (@{$form->{"ALL"}}) { |
|
2886 |
$default_printer .= qq|<option value="| . Q($printer->{"id"}) . |
|
2887 |
qq|" $selected{$printer->{'id'}}>| . |
|
2888 |
H($printer->{"printer_description"}) . qq|</option>|; |
|
2889 |
} |
|
2890 |
|
|
2870 | 2891 |
%countrycodes = User->country_codes; |
2871 | 2892 |
$countrycodes = ''; |
2872 | 2893 |
foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} } |
... | ... | |
3027 | 3048 |
<th align=right>| . $locale->text('Default template format') . qq|</th> |
3028 | 3049 |
<td><select name="template_format">$template_format</select></td> |
3029 | 3050 |
</tr> |
3051 |
<tr> |
|
3052 |
<th align=right>| . $locale->text('Default output medium') . qq|</th> |
|
3053 |
<td><select name="default_media">$default_media</select></td> |
|
3054 |
</tr> |
|
3055 |
<tr> |
|
3056 |
<th align=right>| . $locale->text('Default printer') . qq|</th> |
|
3057 |
<td><select name="default_printer_id">$default_printer</select></td> |
|
3058 |
</tr> |
|
3030 | 3059 |
<tr> |
3031 | 3060 |
<th align=right>| . $locale->text('Number of copies') . qq|</th> |
3032 | 3061 |
<td><input name="copies" size="10" value="| . |
bin/mozilla/io.pl | ||
---|---|---|
1469 | 1469 |
$myconfig{"copies"} ? $myconfig{"copies"} : |
1470 | 1470 |
3; |
1471 | 1471 |
|
1472 |
$form->{"media"} = |
|
1473 |
$form->{"media"} ? $form->{"media"} : |
|
1474 |
$myconfig{"default_media"} ? $myconfig{"default_media"} : |
|
1475 |
"screen"; |
|
1476 |
|
|
1477 |
$lxdebug->message(0, "fm $form->{media}"); |
|
1478 |
|
|
1479 |
$form->{"printer_id"} = |
|
1480 |
defined($form->{"printer_id"}) ? $form->{"printer_id"} : |
|
1481 |
$myconfig{"default_printer_id"} ? $myconfig{"default_printer_id"} : |
|
1482 |
""; |
|
1483 |
|
|
1472 | 1484 |
$form->{PD}{ $form->{formname} } = "selected"; |
1473 | 1485 |
$form->{DF}{ $form->{format} } = "selected"; |
1474 | 1486 |
$form->{OP}{ $form->{media} } = "selected"; |
bin/mozilla/is.pl | ||
---|---|---|
244 | 244 |
if ($form->{type} eq "credit_note") { |
245 | 245 |
$form->{type} = "credit_note"; |
246 | 246 |
$form->{formname} = "credit_note"; |
247 |
$form->{media} = "screen"; |
|
248 | 247 |
} else { |
249 | 248 |
$form->{type} = "invoice"; |
250 | 249 |
$form->{formname} = "invoice"; |
251 |
$form->{media} = "screen"; |
|
252 | 250 |
} |
253 | 251 |
|
254 | 252 |
if ($form->{id}) { |
bin/mozilla/oe.pl | ||
---|---|---|
284 | 284 |
|
285 | 285 |
sub prepare_order { |
286 | 286 |
$lxdebug->enter_sub(); |
287 |
$form->{media} = "screen"; |
|
288 | 287 |
$form->{formname} = $form->{type} unless $form->{formname}; |
289 | 288 |
|
290 | 289 |
my $i = 0; |
locale/de/all | ||
---|---|---|
313 | 313 |
'December' => 'Dezember', |
314 | 314 |
'Decimalplaces' => 'Dezimalstellen', |
315 | 315 |
'Decrease' => 'Verringern', |
316 |
'Default output medium' => 'Standardausgabekanal', |
|
317 |
'Default printer' => 'Standarddrucker', |
|
316 | 318 |
'Default template format' => 'Standardvorlagenformat', |
317 | 319 |
'Delete' => 'L?schen', |
318 | 320 |
'Delete Account' => 'Konto l?schen', |
locale/de/am | ||
---|---|---|
66 | 66 |
'Dataset upgrade' => 'Datenbankaktualisierung', |
67 | 67 |
'Date Format' => 'Datumsformat', |
68 | 68 |
'Debit' => 'Soll', |
69 |
'Default output medium' => 'Standardausgabekanal', |
|
70 |
'Default printer' => 'Standarddrucker', |
|
69 | 71 |
'Default template format' => 'Standardvorlagenformat', |
70 | 72 |
'Delete' => 'L?schen', |
71 | 73 |
'Delete Account' => 'Konto l?schen', |
... | ... | |
186 | 188 |
'Profit Center' => 'Erfolgsbereich', |
187 | 189 |
'Project Number' => 'Projektnummer', |
188 | 190 |
'Project description' => 'Projektbeschreibung', |
191 |
'Queue' => 'Warteschlange', |
|
189 | 192 |
'Rate' => 'Rate', |
190 | 193 |
'Receipt' => 'Zahlungseingang', |
191 | 194 |
'Receivables' => 'Forderungen', |
... | ... | |
195 | 198 |
'SIC saved!' => 'SIC gespeichert', |
196 | 199 |
'Salesman' => 'Vertreter', |
197 | 200 |
'Save' => 'Speichern', |
201 |
'Screen' => 'Bildschirm', |
|
198 | 202 |
'Select a Customer' => 'Endkunde ausw?hlen', |
199 | 203 |
'Select a part' => 'Artikel auswählen', |
200 | 204 |
'Select a project' => 'Projekt auswählen', |
Auch abrufbar als: Unified diff
Benutzereinstellungen: Neue Optionen für den Standardausgabekanal und den Standarddrucker hinzugefügt.