map { $additional_params->{"myconfig_${_}"} = $main::myconfig{$_}; } keys %::myconfig;
}
- $additional_params->{"conf_dbcharset"} = $main::dbcharset;
- $additional_params->{"conf_webdav"} = $main::webdav;
- $additional_params->{"conf_lizenzen"} = $main::lizenzen;
- $additional_params->{"conf_latex_templates"} = $main::latex;
- $additional_params->{"conf_opendocument_templates"} = $main::opendocument_templates;
- $additional_params->{"conf_vertreter"} = $main::vertreter;
- $additional_params->{"conf_show_best_before"} = $main::show_best_before;
+ $additional_params->{"conf_dbcharset"} = $::dbcharset;
+ $additional_params->{"conf_webdav"} = $::webdav;
+ $additional_params->{"conf_lizenzen"} = $::lizenzen;
+ $additional_params->{"conf_latex_templates"} = $::latex;
+ $additional_params->{"conf_opendocument_templates"} = $::opendocument_templates;
+ $additional_params->{"conf_vertreter"} = $::vertreter;
+ $additional_params->{"conf_show_best_before"} = $::show_best_before;
+ $additional_params->{"conf_parts_image_css"} = $::parts_image_css;
+ $additional_params->{"conf_parts_listing_images"} = $::parts_listing_images;
+ $additional_params->{"conf_parts_show_image"} = $::parts_show_image;
if (%main::debug_options) {
map { $additional_params->{'DEBUG_' . uc($_)} = $main::debug_options{$_} } keys %main::debug_options;
use Cwd;
-use vars qw($dbcharset $eur $ghostscript_bin $html2ps_bin $language $latex_bin $latex_templates $lizenzen $memberfile
- $opendocument_templates $openofficeorg_daemon $openofficeorg_daemon_port $openofficeorg_writer_bin
- $pg_dump_exe $pg_restore_exe $sendmail $show_best_before $sid $spool $templates $userspath $vertreter $webdav $xvfb_bin);
+use vars qw(
+ $dbcharset $eur $ghostscript_bin $html2ps_bin $language $latex_bin
+ $latex_templates $lizenzen $memberfile $opendocument_templates
+ $openofficeorg_daemon $openofficeorg_daemon_port $openofficeorg_writer_bin
+ $parts_image_css $parts_listing_images $parts_show_image $pg_dump_exe
+ $pg_restore_exe $sendmail $show_best_before $sid $spool $templates $userspath
+ $vertreter $webdav $xvfb_bin
+);
+
# path to user configuration files
$userspath = "users";
# Zeige Felder für Mindesthaltbarkeitsdatum
$show_best_before = 0;
+## Artikelbilder anzeigen
+# Artikelbild in der Detailansicht anzeigen
+$parts_show_image = 1; # [0|1]
+$parts_image_css = 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;'; # [belibige valide css definiton]
+# Artikelbilder per default in den Suchergebnissen anzeigen
+$parts_listing_images = 0; # [0|1]
+
## Support fuer OpenDocument-Vorlagen
# Diese Option legt fest, ob OpenDocument-Vorlagen generell verfuegbar sind.
$opendocument_templates = 1;
- Verkaufsbericht mit Statistiken zu Margen
- Wenn ein Auftrag komplett geliefert ist, den Workflow-Knopf 'Lieferschein' ausblenden
- Zahlungsein- und ausgänge um Suche nach Rechnungsnummer erweitert
+ - Anzeige von Bildern in Artikelmaske und Wahlmöglichkeit Defaultwert für
+ Bilder in Artikelsuche via Configparameter in config/lx-erp.conf
API Änderungen:
<table width="100%">
<tr valign="top">
<td>
+[%- IF image && conf_parts_show_image %]
+ <a href="[% image | html %]" target="_blank"><img style="[% conf_parts_image_css %]" src="[% image | html %]"/></a>
+[%- END %]
+
<table>
<tr>
<td colspan="2">
<tr>
<td>
- <input name="l_image" id="l_image" class="checkbox" type="checkbox" value="Y">
+ <input name="l_image" id="l_image" class="checkbox"[%- IF conf_parts_listing_images %] checked="checked"[% END %] type="checkbox" value="Y">
<label for="l_image">[% 'Image' | $T8 %]</label>
</td>
<td>