From 78d75869639767b12a54b4775e7dfd7a750bbadb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 27 Nov 2017 13:14:43 +0100 Subject: [PATCH] =?utf8?q?Inventur:=20neuer=20Transfer-Typ=20f=C3=BCr=20In?= =?utf8?q?ventur=20('stocktaking')=20(DB-Upgrade)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/wh.pl | 1 + locale/de/all | 1 + locale/en/all | 1 + sql/Pg-upgrade2/transfer_type_stocktaking.sql | 6 ++++++ 4 files changed, 9 insertions(+) create mode 100644 sql/Pg-upgrade2/transfer_type_stocktaking.sql diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index 6d74a6734..78b05760c 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -71,6 +71,7 @@ use strict; # $locale->text('return_material') # $locale->text('release_material') # $locale->text('assembled') +# $locale->text('stocktaking') # -------------------------------------------------------------------- # Transfer diff --git a/locale/de/all b/locale/de/all index 38a608048..ac2241df8 100755 --- a/locale/de/all +++ b/locale/de/all @@ -4082,6 +4082,7 @@ $self->{texts} = { 'start upload' => 'Hochladen beginnt', 'stock' => 'Einlagerung', 'stock_br' => 'Eingel.', + 'stocktaking' => 'Inventur', 'succeeded' => 'erfolgreich', 'sum' => 'Summe', 'tax_chartaccno' => 'Automatikkonto', diff --git a/locale/en/all b/locale/en/all index 88bbbc23c..935f8e140 100644 --- a/locale/en/all +++ b/locale/en/all @@ -4028,6 +4028,7 @@ $self->{texts} = { 'start upload' => '', 'stock' => '', 'stock_br' => 'stock', + 'stocktaking' => '', 'succeeded' => '', 'sum' => '', 'tax_chartaccno' => '', diff --git a/sql/Pg-upgrade2/transfer_type_stocktaking.sql b/sql/Pg-upgrade2/transfer_type_stocktaking.sql new file mode 100644 index 000000000..f47c543f2 --- /dev/null +++ b/sql/Pg-upgrade2/transfer_type_stocktaking.sql @@ -0,0 +1,6 @@ +-- @tag: transfer_type_stocktaking +-- @description: neuer Transfertyp stocktaking für Inventur +-- @depends: warehouse + +INSERT INTO transfer_type (direction, description, sortkey) VALUES ('in', 'stocktaking', (SELECT COALESCE(MAX(sortkey), 0) + 1 FROM transfer_type)); +INSERT INTO transfer_type (direction, description, sortkey) VALUES ('out', 'stocktaking', (SELECT COALESCE(MAX(sortkey), 0) + 1 FROM transfer_type)); -- 2.20.1