currency dateformat dbconnect dbdriver dbhost dbport dboptions
dbname dbuser dbpasswd email fax name numberformat in_numberformat password
printer role sid signature stylesheet tel templates vclimit angebote bestellungen rechnungen
- anfragen lieferantenbestellungen einkaufsrechnungen taxnumber co_ustid duns menustyle);
+ anfragen lieferantenbestellungen einkaufsrechnungen taxnumber co_ustid duns menustyle
+ template_format copies);
$main::lxdebug->leave_sub();
$myconfig{$item} =~ s/\\n/\r\n/g;
}
+ @formats = ();
+ if ($opendocument_templates && $openofficeorg_writer_bin &&
+ $xvfb_bin && (-x $openofficeorg_writer_bin) && (-x $xvfb_bin)) {
+ push(@formats, { "name" => $locale->text("PDF (OpenDocument/OASIS)"),
+ "value" => "opendocument_pdf" });
+ }
+ if ($latex_templates) {
+ push(@formats, { "name" => $locale->text("PDF"), "value" => "pdf" });
+ }
+ push(@formats, { "name" => "HTML", "value" => "html" });
+ if ($latex_templates) {
+ push(@formats, { "name" => $locale->text("Postscript"),
+ "value" => "postscript" });
+ }
+ if ($opendocument_templates) {
+ push(@formats, { "name" => $locale->text("OpenDocument/OASIS"),
+ "value" => "opendocument" });
+ }
+
+ if (!$myconfig{"template_format"}) {
+ $myconfig{"template_format"} = "pdf";
+ }
+ $template_format = "";
+ foreach $item (@formats) {
+ $template_format .=
+ "<option value=\"$item->{value}\"" .
+ ($item->{"value"} eq $myconfig{"template_format"} ?
+ " selected" : "") .
+ ">" . H($item->{"name"}) . "</option>";
+ }
+
%countrycodes = User->country_codes;
$countrycodes = '';
foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} }
<input name=menustyle type=radio class=radio value=old $oldS> Old</td>
</tr>
<input name=printer type=hidden value="$myconfig{printer}">
+ <tr class=listheading>
+ <th colspan=2>| . $locale->text("Print options") . qq|</th>
+ </tr>
+ <tr>
+ <th align=right>| . $locale->text('Default template format') . qq|</th>
+ <td><select name="template_format">$template_format</select></td>
+ </tr>
+ <tr>
+ <th align=right>| . $locale->text('Number of copies') . qq|</th>
+ <td><input name="copies" size="10" value="| .
+ $form->quote($myconfig{"copies"}) . qq|"></td>
+ </tr>
+
+
<tr class=listheading>
<th colspan=2> </th>
</tr>
sub print_options {
$lxdebug->enter_sub();
$form->{sendmode} = "attachment";
- $form->{copies} = 3 unless $form->{copies};
+
+ $form->{"format"} =
+ $form->{"format"} ? $form->{"format"} :
+ $myconfig{"template_format"} ? $myconfig{"template_format"} :
+ "pdf";
+
+ $form->{"copies"} =
+ $form->{"copies"} ? $form->{"copies"} :
+ $myconfig{"copies"} ? $myconfig{"copies"} :
+ 3;
$form->{PD}{ $form->{formname} } = "selected";
$form->{DF}{ $form->{format} } = "selected";
}
&invoice_links;
&prepare_invoice;
- $form->{format} = "pdf";
-
&display_form;
$lxdebug->leave_sub();
sub prepare_order {
$lxdebug->enter_sub();
- $form->{format} = "pdf" unless ($form->{print_and_save} && $form->{format});
$form->{media} = "screen";
$form->{formname} = $form->{type} unless $form->{formname};
$lxdebug->enter_sub();
$form->{sendmode} = "attachment";
- $form->{copies} = 2 unless $form->{copies};
+
+ $form->{"format"} =
+ $form->{"format"} ? $form->{"format"} :
+ $myconfig{"template_format"} ? $myconfig{"template_format"} :
+ "pdf";
+
+ $form->{"copies"} =
+ $form->{"copies"} ? $form->{"copies"} :
+ $myconfig{"copies"} ? $myconfig{"copies"} :
+ 2;
$form->{PD}{ $form->{type} } = "selected";
$form->{DF}{ $form->{format} } = "selected";
'December' => 'Dezember',
'Decimalplaces' => 'Dezimalstellen',
'Decrease' => 'Verringern',
+ 'Default template format' => 'Standardvorlagenformat',
'Delete' => 'Löschen',
'Delete Account' => 'Konto löschen',
'Delete Dataset' => 'Datenbank löschen',
'Number' => 'Nummer',
'Number Format' => 'Zahlenformat',
'Number missing in Row' => 'Nummer fehlt in Zeile',
+ 'Number of copies' => 'Anzahl Kopien',
'O' => 'O',
'OBE Export erfolgreich!' => 'OBE-Export erfolgreich!',
'Obsolete' => 'Ungültig',
'Pricegroups' => 'Preisgruppen',
'Print' => 'Drucken',
'Print and Post' => 'Drucken und Buchen',
+ 'Print options' => 'Druckoptionen',
'Printed' => 'gedruckt.',
'Printer' => 'Drucker',
'Printer Command' => 'Druckbefehl',
'Dataset upgrade' => 'Datenbankaktualisierung',
'Date Format' => 'Datumsformat',
'Debit' => 'Soll',
+ 'Default template format' => 'Standardvorlagenformat',
'Delete' => 'Löschen',
'Delete Account' => 'Konto löschen',
'Department deleted!' => 'Abteilung gelöscht.',
'No project was found matching the search parameters.' => 'Es wurde kein Projekt gefunden, auf das die Suchparameter zutreffen.',
'Number' => 'Nummer',
'Number Format' => 'Zahlenformat',
+ 'Number of copies' => 'Anzahl Kopien',
+ 'OpenDocument/OASIS' => 'OpenDocument/OASIS',
'Output Number Format' => 'Zahlenformat (Ausgabe)',
+ 'PDF' => 'PDF',
+ 'PDF (OpenDocument/OASIS)' => 'PDF (OpenDocument/OASIS)',
'Part Number' => 'Artikelnummer',
'Part description' => 'Artikelbeschreibung',
'Parts Inventory' => 'Warenliste',
'Payment terms deleted!' => 'Zahlungskonditionen gelöscht!',
'Phone' => 'Telefon',
'Please enter values' => 'Bitte Werte eingeben',
+ 'Postscript' => 'Postscript',
'Preferences saved!' => 'Einstellungen gespeichert!',
+ 'Print options' => 'Druckoptionen',
'Printer' => 'Drucker',
'Printer Command' => 'Druckbefehl',
'Printer Command missing!' => 'Druckbefehl fehlt',