From f89dda62e91564f825f52df0c4e63ca85691e858 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 10 May 2021 12:53:28 +0200 Subject: [PATCH] =?utf8?q?Konfigurierbarer=20Zeitraum=20innerhalb=20dessen?= =?utf8?q?=20Lieferscheine=20wieder=20r=C3=BCckgelagert=20werden=20k=C3=B6?= =?utf8?q?nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/MetaSetup/Default.pm | 1 + sql/Pg-upgrade2/add_transfer_doc_interval.sql | 4 ++++ templates/webpages/client_config/_warehouse.html | 6 ++++++ 3 files changed, 11 insertions(+) create mode 100644 sql/Pg-upgrade2/add_transfer_doc_interval.sql diff --git a/SL/DB/MetaSetup/Default.pm b/SL/DB/MetaSetup/Default.pm index c998dc4d4..6308292d7 100644 --- a/SL/DB/MetaSetup/Default.pm +++ b/SL/DB/MetaSetup/Default.pm @@ -175,6 +175,7 @@ __PACKAGE__->meta->columns( transfer_default_use_master_default_bin => { type => 'boolean', default => 'false' }, transfer_default_warehouse_for_assembly => { type => 'boolean', default => 'false' }, transport_cost_reminder_article_number_id => { type => 'integer' }, + undo_transfer_interval => { type => 'integer', default => 7 }, vc_greetings_use_textfield => { type => 'boolean' }, vendor_ustid_taxnummer_unique => { type => 'boolean', default => 'false' }, vendornumber => { type => 'text' }, diff --git a/sql/Pg-upgrade2/add_transfer_doc_interval.sql b/sql/Pg-upgrade2/add_transfer_doc_interval.sql new file mode 100644 index 000000000..79e2abab3 --- /dev/null +++ b/sql/Pg-upgrade2/add_transfer_doc_interval.sql @@ -0,0 +1,4 @@ +-- @tag: add_transfer_doc_interval +-- @description: Konfigurierbarer Zeitraum innerhalb dessen Lieferscheine wieder rückgelagert werden können +-- @depends: release_3_5_6_1 +ALTER TABLE defaults ADD COLUMN undo_transfer_interval integer DEFAULT 7; diff --git a/templates/webpages/client_config/_warehouse.html b/templates/webpages/client_config/_warehouse.html index 3cc28efa0..2550a0603 100644 --- a/templates/webpages/client_config/_warehouse.html +++ b/templates/webpages/client_config/_warehouse.html @@ -116,5 +116,11 @@ [% LxERP.t8('Any stock contents containing a best before date will be impossible to stock out otherwise.') %] + + [% LxERP.t8('Undo Transfer Interval') %] + [% L.input_tag('defaults.unod_transfer_interval', LxERP.format_amount(SELF.defaults.undo_transfer_interval, 7), style=style) %] + [% LxERP.t8('Defines the interval where undoing transfers from a delivery order are allowed.') %] + + -- 2.20.1