From: Bernd Bleßmann Date: Tue, 30 Oct 2012 12:12:47 +0000 (+0100) Subject: Option für Mindesthaltbarkeitsdatum in Mandantenkonfiguration verschoben. X-Git-Tag: release-3.0.0beta1~14^2~9^2~9 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4b31e6ba4211c900648d92af80ae8d09041977ad;p=kivitendo-erp.git Option für Mindesthaltbarkeitsdatum in Mandantenkonfiguration verschoben. --- diff --git a/SL/Controller/ClientConfig.pm b/SL/Controller/ClientConfig.pm index 86ae56165..97ff15a6d 100644 --- a/SL/Controller/ClientConfig.pm +++ b/SL/Controller/ClientConfig.pm @@ -17,6 +17,7 @@ sub action_edit { { title => $::locale->text("on the same day"), value => 2 }, ]; $self->{payments_changeable} = SL::DB::Default->get->payments_changeable; + $self->{show_bestbefore} = SL::DB::Default->get->show_bestbefore; $self->render('client_config/form', title => $::locale->text('Client Configuration')); } @@ -26,6 +27,7 @@ sub action_save { my ($self, %params) = @_; SL::DB::Default->get->update_attributes('payments_changeable' => $::form->{payments_changeable}); + SL::DB::Default->get->update_attributes('show_bestbefore' => $::form->{show_bestbefore}); flash_later('info', $::locale->text('Client Configuration saved!')); diff --git a/SL/DB/MetaSetup/Default.pm b/SL/DB/MetaSetup/Default.pm index 8488a085a..8920ef582 100644 --- a/SL/DB/MetaSetup/Default.pm +++ b/SL/DB/MetaSetup/Default.pm @@ -48,6 +48,7 @@ __PACKAGE__->meta->setup( profit_determination => { type => 'text' }, language_id => { type => 'integer' }, payments_changeable => { type => 'integer', default => '0', not_null => 1 }, + show_bestbefore => { type => 'boolean', default => 'false' }, ], primary_key_columns => [ 'id' ], diff --git a/SL/Form.pm b/SL/Form.pm index e03916f1d..ce887c347 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -634,7 +634,6 @@ sub _prepare_html_template { $additional_params->{"conf_latex_templates"} = $::lx_office_conf{print_templates}->{latex}; $additional_params->{"conf_opendocument_templates"} = $::lx_office_conf{print_templates}->{opendocument}; $additional_params->{"conf_vertreter"} = $::lx_office_conf{features}->{vertreter}; - $additional_params->{"conf_show_best_before"} = $::lx_office_conf{features}->{show_best_before}; $additional_params->{"conf_parts_image_css"} = $::lx_office_conf{features}->{parts_image_css}; $additional_params->{"conf_parts_listing_images"} = $::lx_office_conf{features}->{parts_listing_images}; $additional_params->{"conf_parts_show_image"} = $::lx_office_conf{features}->{parts_show_image}; diff --git a/SL/InstanceConfiguration.pm b/SL/InstanceConfiguration.pm index 24fd3be28..4629e9423 100644 --- a/SL/InstanceConfiguration.pm +++ b/SL/InstanceConfiguration.pm @@ -49,6 +49,11 @@ sub get_profit_determination { return $self->{data}->{profit_determination}; } +sub get_show_bestbefore { + my ($self) = @_; + return $self->{data}->{show_bestbefore}; +} + 1; __END__ @@ -101,6 +106,10 @@ Returns the default inventory system, perpetual or periodic Returns the default profit determination method, balance or income +=item C + +Returns the default behavior for showing best before date, true or false + =back =head1 BUGS diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index b58cd7190..570c7c358 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -1444,7 +1444,7 @@ sub transfer_out { my $pinfo = $part_info_map{$request->{parts_id}}; my $binfo = $bin_info_map{$request->{bin_id}}; - if ($::lx_office_conf{features}->{show_best_before}) { + if ($::instance_conf->get_show_bestbefore) { push @{ $form->{ERRORS} }, $locale->text("There is not enough available of '#1' at warehouse '#2', bin '#3', #4, #5, for the transfer of #6.", $pinfo->{description}, $binfo->{warehouse_description}, diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index 9d387f02e..0315bb9dc 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -438,7 +438,7 @@ sub create_assembly { $form->error($locale->text('The warehouse or the bin is missing.')); } - if (!$::lx_office_conf{features}->{show_best_before}) { + if (!$::instance_conf->get_show_bestbefore) { $form->{bestbefore} = ''; } diff --git a/config/kivitendo.conf.default b/config/kivitendo.conf.default index 8e05d548f..e3d5adbad 100644 --- a/config/kivitendo.conf.default +++ b/config/kivitendo.conf.default @@ -74,17 +74,6 @@ dbcharset = UTF-8 webdav = 0 vertreter = 0 -# Show fields used for the best before date -# ATTENTION! If you enabled this feature you can not simply turn it off again -# without taking care that best_before fields are emptied in the database. -# This can be done with the following query: -# -# UPDATE inventory SET bestbefore = NULL; -# -# Any stock contents containing a best before date will be impossible to stock -# out otherwise. -show_best_before = 0 - ## Pictures for parts # Show the picture in the part form parts_show_image = 1 diff --git a/locale/de/all b/locale/de/all index 8d40cefbd..1ee4ea3d6 100644 --- a/locale/de/all +++ b/locale/de/all @@ -55,6 +55,7 @@ $self->{texts} = { 'AR Transaction (abbreviation)' => 'D', 'AR Transactions' => 'Debitorenbuchungen', 'ASSETS' => 'AKTIVA', + 'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' => 'ACHTUNG! Wenn Sie diese Einstellung aktivieren, dann können Sie sie später nicht ohne Weiteres deaktivieren, ohne dafür zu sorgen, dass die Felder der Mindeshaltbarkeitsdaten in der Datenbank leer gemacht werden.', 'Abort' => 'Abbrechen', 'Abrechnungsnummer' => 'Abrechnungsnummer', 'Abteilung' => 'Abteilung', @@ -185,6 +186,7 @@ $self->{texts} = { 'An upper-case character is required.' => 'Ein Großbuchstabe ist vorgeschrieben.', 'Annotations' => 'Anmerkungen', 'Another user with the login #1 does already exist.' => 'Es existiert bereits ein anderer Benutzer mit diesem Login.', + 'Any stock contents containing a best before date will be impossible to stock out otherwise.' => 'Sonst können Artikel, bei denen ein Mindesthaltbarkeitsdatum gesetzt ist, nicht mehr ausgelagert werden.', 'Ap aging on %s' => 'Offene Verbindlichkeiten zum %s', 'Application Error. No Format given' => 'Fehler in der Anwendung. Das Ausgabeformat fehlt.', 'Application Error. Wrong Format' => 'Fehler in der Anwendung. Falsches Format: ', @@ -1687,12 +1689,14 @@ $self->{texts} = { 'Short' => 'Knapp', 'Should payments be and when should they be changeable after posting?' => 'Sollen Zahlungen nach dem Buchen änderbar sein, und wenn ja, wann?', 'Show' => 'Zeigen', + 'Show Bestbefore' => 'Mindesthaltbarkeit anzeigen', 'Show Filter' => 'Filter zeigen', 'Show Salesman' => 'Verkäufer anzeigen', 'Show TODO list' => 'Aufgabenliste anzeigen', 'Show by default' => 'Standardmäßig anzeigen', 'Show custom variable search inputs' => 'Suchoptionen für Benutzerdefinierte Variablen verstecken', 'Show details' => 'Detailsanzeige', + 'Show fields used for the best before date?' => 'Felder zur Eingabe des Mindesthaltbarkeitsdatums anzeigen?', 'Show follow ups...' => 'Zeige Wiedervorlagen...', 'Show help text' => 'Hilfetext anzeigen', 'Show items from invoices individually' => 'Artikel aus Rechnungen anzeigen', @@ -2000,6 +2004,7 @@ $self->{texts} = { 'Therefore there\'s no need to create the same article more than once if it is sold or bought in/from another tax zone.' => 'Deswegen muss man den gleichen Artikel nicht mehr mehrmals anlegen, wenn er in verschiedenen Steuerzonen gehandelt werden soll.', 'These units can be based on other units so that kivitendo can convert prices when the user switches from one unit to another.' => 'Einheiten können auf anderen Einheiten basieren, sodass kivitendo Preise automatisch umrechnen kann, wenn die Benutzer zwischen solchen Einheiten umschalten.', 'These wrong entries cannot be fixed automatically.' => 'Diese Einträge können nicht automatisch bereinigt werden.', + 'This can be done with the following query:' => 'Dies kann mit der folgenden Datenbankabfrage erreicht werden:', 'This corresponds to kivitendo\'s behavior prior to version 2.4.4.' => 'Dies entspricht kivitendos Verhalten vor Version 2.4.4.', 'This could have happened for two reasons:' => 'Dies kann aus zwei Gründen geschehen sein:', 'This customer number is already in use.' => 'Diese Kundennummer wird bereits verwendet.', diff --git a/locale/de_DE/all b/locale/de_DE/all index 04030cce0..f90ecaf1e 100644 --- a/locale/de_DE/all +++ b/locale/de_DE/all @@ -55,6 +55,7 @@ $self->{texts} = { 'AR Transaction (abbreviation)' => 'D', 'AR Transactions' => 'Debitorenbuchungen', 'ASSETS' => 'AKTIVA', + 'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' => 'ACHTUNG! Wenn Sie diese Einstellung aktivieren, dann können Sie sie später nicht ohne Weiteres deaktivieren, ohne dafür zu sorgen, dass die Felder der Mindeshaltbarkeitsdaten in der Datenbank leer gemacht werden.', 'Abort' => 'Abbrechen', 'Abrechnungsnummer' => 'Abrechnungsnummer', 'Abteilung' => 'Abteilung', @@ -183,6 +184,7 @@ $self->{texts} = { 'An upper-case character is required.' => 'Ein Großbuchstabe ist vorgeschrieben.', 'Annotations' => 'Hilfe', 'Another user with the login #1 does already exist.' => 'Es existiert bereits ein anderer Benutzer mit diesem Login.', + 'Any stock contents containing a best before date will be impossible to stock out otherwise.' => 'Sonst können Artikel, bei denen ein Mindesthaltbarkeitsdatum gesetzt ist, nicht mehr ausgelagert werden.', 'Ap aging on %s' => 'Offene Verbindlichkeiten zum %s', 'Application Error. No Format given' => 'Fehler in der Anwendung. Das Ausgabeformat fehlt.', 'Application Error. Wrong Format' => 'Fehler in der Anwendung. Falsches Format: ', @@ -1642,11 +1644,13 @@ $self->{texts} = { 'Short' => 'Knapp', 'Should payments be and when should they be changeable after posting?' => 'Sollen Zahlungen nach dem Buchen änderbar sein, und wenn ja, wann?', 'Show' => 'Zeigen', + 'Show Bestbefore' => 'Mindesthaltbarkeit anzeigen', 'Show Salesman' => 'Verkäufer anzeigen', 'Show TODO list' => 'Meine Aufgaben', 'Show by default' => 'Standardmäßig anzeigen', 'Show custom variable search inputs' => 'Suche in erweiterten Datenfeldern', 'Show details' => 'Detailsanzeige', + 'Show fields used for the best before date?' => 'Felder zur Eingabe des Mindesthaltbarkeitsdatums anzeigen?', 'Show follow ups...' => 'Zeige Wiedervorlagen...', 'Show help text' => 'Hilfetext anzeigen', 'Show old dunnings' => 'Alte Mahnungen anzeigen', @@ -1930,6 +1934,7 @@ $self->{texts} = { 'Therefore there\'s no need to create the same article more than once if it is sold or bought in/from another tax zone.' => 'Deswegen muss man den gleichen Artikel nicht mehr mehrmals anlegen, wenn er in verschiedenen Steuerzonen gehandelt werden soll.', 'These units can be based on other units so that Lx-Office can convert prices when the user switches from one unit to another.' => 'Diese Einheiten können auf anderen Einheiten basieren, sodass Lx-Office Preise umrechnen kann, wenn der Benutzer von einer Einheit zu einer anderen Wechselt.', 'These wrong entries cannot be fixed automatically.' => 'Diese Einträge können nicht automatisch bereinigt werden.', + 'This can be done with the following query:' => 'Dies kann mit der folgenden Datenbankabfrage erreicht werden:', 'This corresponds to Lx-Office\'s behavior prior to version 2.4.4.' => 'Dieses entspricht dem Verhalten von Lx-Office vor Version 2.4.4.', 'This could have happened for two reasons:' => 'Dies kann aus zwei Gründen geschehen sein:', 'This customer number is already in use.' => 'Diese Kundennummer wird bereits verwendet.', diff --git a/locale/en/all b/locale/en/all index dfde56cc4..e76c86695 100644 --- a/locale/en/all +++ b/locale/en/all @@ -55,6 +55,7 @@ $self->{texts} = { 'AR Transaction (abbreviation)' => '', 'AR Transactions' => 'Sales Transactions', 'ASSETS' => '', + 'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' => '', 'Abort' => '', 'Abrechnungsnummer' => '', 'Abteilung' => '', @@ -183,6 +184,7 @@ $self->{texts} = { 'An upper-case character is required.' => '', 'Annotations' => '', 'Another user with the login #1 does already exist.' => '', + 'Any stock contents containing a best before date will be impossible to stock out otherwise.' => '', 'Ap aging on %s' => '', 'Application Error. No Format given' => '', 'Application Error. Wrong Format' => '', @@ -1664,12 +1666,14 @@ $self->{texts} = { 'Short' => '', 'Should payments be and when should they be changeable after posting?' => '', 'Show' => '', + 'Show Bestbefore' => '', 'Show Filter' => '', 'Show Salesman' => '', 'Show TODO list' => '', 'Show by default' => '', 'Show custom variable search inputs' => '', 'Show details' => '', + 'Show fields used for the best before date?' => '', 'Show follow ups...' => '', 'Show help text' => '', 'Show items from invoices individually' => '', @@ -1954,6 +1958,7 @@ $self->{texts} = { 'Therefore there\'s no need to create the same article more than once if it is sold or bought in/from another tax zone.' => '', 'These units can be based on other units so that kivitendo can convert prices when the user switches from one unit to another.' => '', 'These wrong entries cannot be fixed automatically.' => '', + 'This can be done with the following query:' => '', 'This corresponds to kivitendo\'s behavior prior to version 2.4.4.' => '', 'This could have happened for two reasons:' => '', 'This customer number is already in use.' => '', diff --git a/sql/Pg-upgrade2/defaults_show_bestbefore.pl b/sql/Pg-upgrade2/defaults_show_bestbefore.pl new file mode 100644 index 000000000..36b1882bc --- /dev/null +++ b/sql/Pg-upgrade2/defaults_show_bestbefore.pl @@ -0,0 +1,47 @@ +# @tag: defaults_show_bestbefore +# @description: Einstellung, ob Mindesthaltbarkeitsdatum angezeigt wird, vom Config-File in die DB verlagern. +# @depends: release_2_7_0 +# @charset: utf-8 + +use utf8; +use strict; + +die("This script cannot be run from the command line.") unless ($main::form); + +sub mydberror { + my ($msg) = @_; + die($dbup_locale->text("Database update error:") . + "
$msg
" . $DBI::errstr); +} + +sub do_query { + my ($query, $may_fail) = @_; + + if (!$dbh->do($query)) { + mydberror($query) unless ($may_fail); + $dbh->rollback(); + $dbh->begin_work(); + } +} + +sub do_update { + + # this query will fail if column already exist (new database) + do_query(qq|ALTER TABLE defaults ADD COLUMN show_bestbefore boolean DEFAULT false|, 1); + + # check current configuration and set default variables accordingly, so that + # Lx-Office behaviour isn't changed by this update + # if show_best_before is not set in config set it to 0 + my $show_bestbefore = 0; + if ($::lx_office_conf{features}->{show_best_before}) { + $show_bestbefore = 1; + } + + my $update_column = "UPDATE defaults SET show_bestbefore = '$show_bestbefore';"; + do_query($update_column); + + return 1; +} + +return do_update(); + diff --git a/templates/webpages/client_config/form.html b/templates/webpages/client_config/form.html index 173a98748..448c244e6 100644 --- a/templates/webpages/client_config/form.html +++ b/templates/webpages/client_config/form.html @@ -7,6 +7,7 @@
+ @@ -15,6 +16,29 @@ + + + + + + + + + + + + +
[% 'Posting Configuration' | $T8 %]
[% L.select_tag('payments_changeable', SELF.payment_options, value_key => 'value', title_key => 'title', default => SELF.payments_changeable) %] [% 'Should payments be and when should they be changeable after posting?' | $T8 %]
[% 'Warehouse' | $T8 %]
[% 'Show Bestbefore' | $T8 %] + [% L.yes_no_tag('show_bestbefore', SELF.show_bestbefore) %] + + [% 'Show fields used for the best before date?' | $T8 %]
+ [% 'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' | $T8 %]
+ [% 'This can be done with the following query:' | $T8 %]
+
+ UPDATE inventory SET bestbefore = NULL;
+
+ [% 'Any stock contents containing a best before date will be impossible to stock out otherwise.' | $T8 %] +

diff --git a/templates/webpages/do/stock_in_form.html b/templates/webpages/do/stock_in_form.html index 27457f310..99b5db1e2 100644 --- a/templates/webpages/do/stock_in_form.html +++ b/templates/webpages/do/stock_in_form.html @@ -93,7 +93,7 @@ [% 'Warehouse' | $T8 %] [% 'Bin' | $T8 %] [% 'Charge Number' | $T8 %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %] [% END %] [% 'Qty' | $T8 %] @@ -109,7 +109,7 @@ [% HTML.escape(row.warehouse_description) %] [% HTML.escape(row.bin_description) %] [% HTML.escape(row.chargenumber) %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% HTML.escape(row.bestbefore) %] [% END %] [% HTML.escape(LxERP.format_amount(row.qty)) %] @@ -127,7 +127,7 @@ - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% L.date_tag('bestbefore_'_ loop.count, row.bestbefore) %] diff --git a/templates/webpages/do/stock_out_form.html b/templates/webpages/do/stock_out_form.html index 6aee3510f..06b599038 100644 --- a/templates/webpages/do/stock_out_form.html +++ b/templates/webpages/do/stock_out_form.html @@ -61,7 +61,7 @@ [% 'Warehouse' | $T8 %] [% 'Bin' | $T8 %] [% 'Charge Number' | $T8 %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %] [% END %] [%- UNLESS delivered %] @@ -77,7 +77,7 @@ [% HTML.escape(row.warehousedescription) %] [% HTML.escape(row.bindescription) %] [% HTML.escape(row.chargenumber) %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% HTML.escape(row.bestbefore) %] [% END %] [%- IF delivered %] @@ -109,7 +109,7 @@ - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] [%- END %] diff --git a/templates/webpages/generic/select_part.html b/templates/webpages/generic/select_part.html index f08104146..ddf5511c8 100644 --- a/templates/webpages/generic/select_part.html +++ b/templates/webpages/generic/select_part.html @@ -21,7 +21,7 @@ [% 'Charge number' | $T8 %] [% END %] [% IF has_bestbefore %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %] [% END %] [% END %] @@ -55,7 +55,7 @@ [% END %] [% IF has_bestbefore %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] diff --git a/templates/webpages/wh/journal_filter.html b/templates/webpages/wh/journal_filter.html index 36740581e..e6082cd9c 100644 --- a/templates/webpages/wh/journal_filter.html +++ b/templates/webpages/wh/journal_filter.html @@ -105,7 +105,7 @@ [% 'Charge Number' | $T8 %]: - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %]: @@ -166,7 +166,7 @@ - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] diff --git a/templates/webpages/wh/removal_parts_selection.html b/templates/webpages/wh/removal_parts_selection.html index 837023ed3..5cf5ffa35 100644 --- a/templates/webpages/wh/removal_parts_selection.html +++ b/templates/webpages/wh/removal_parts_selection.html @@ -35,7 +35,7 @@ [% 'Part Number' | $T8 %] [% 'Part Description' | $T8 %] [% 'Charge Number' | $T8 %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %] [% END %] [% 'EAN' | $T8 %] @@ -50,7 +50,7 @@ - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] @@ -58,7 +58,7 @@ [% HTML.escape(row.partnumber) %] [% HTML.escape(row.partdescription) %] [% HTML.escape(row.chargenumber) %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% HTML.escape(row.bestbefore) %] [% END %] [% HTML.escape(row.ean) %] diff --git a/templates/webpages/wh/report_filter.html b/templates/webpages/wh/report_filter.html index 77a5070be..12a3e0b60 100644 --- a/templates/webpages/wh/report_filter.html +++ b/templates/webpages/wh/report_filter.html @@ -105,7 +105,7 @@ [% 'Charge Number' | $T8 %]: - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %]: @@ -160,7 +160,7 @@ - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] diff --git a/templates/webpages/wh/transfer_parts_selection.html b/templates/webpages/wh/transfer_parts_selection.html index e026dc614..62ded76ff 100644 --- a/templates/webpages/wh/transfer_parts_selection.html +++ b/templates/webpages/wh/transfer_parts_selection.html @@ -66,7 +66,7 @@ [% 'Part Number' | $T8 %] [% 'Part Description' | $T8 %] [% 'Charge Number' | $T8 %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %] [% END %] [% 'EAN' | $T8 %] @@ -82,7 +82,7 @@ - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% END %] @@ -90,7 +90,7 @@ [% HTML.escape(row.partnumber) %] [% HTML.escape(row.partdescription) %] [% HTML.escape(row.chargenumber) %] - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% HTML.escape(row.bestbefore) %] [% END %] [% HTML.escape(row.ean) %] diff --git a/templates/webpages/wh/warehouse_selection.html b/templates/webpages/wh/warehouse_selection.html index 29ffe751c..429b3b1e6 100644 --- a/templates/webpages/wh/warehouse_selection.html +++ b/templates/webpages/wh/warehouse_selection.html @@ -118,7 +118,7 @@ - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %] diff --git a/templates/webpages/wh/warehouse_selection_assembly.html b/templates/webpages/wh/warehouse_selection_assembly.html index 394450c76..4fb3a715f 100644 --- a/templates/webpages/wh/warehouse_selection_assembly.html +++ b/templates/webpages/wh/warehouse_selection_assembly.html @@ -106,7 +106,7 @@ - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %] diff --git a/templates/webpages/wh/warehouse_selection_stock.html b/templates/webpages/wh/warehouse_selection_stock.html index bdff7961d..50da3f1e2 100644 --- a/templates/webpages/wh/warehouse_selection_stock.html +++ b/templates/webpages/wh/warehouse_selection_stock.html @@ -106,7 +106,7 @@ - [% IF conf_show_best_before %] + [% IF INSTANCE_CONF.get_show_bestbefore %] [% 'Best Before' | $T8 %]