Inventur: neuer Transfer-Typ für Inventur ('stocktaking') (DB-Upgrade)
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 27 Nov 2017 12:14:43 +0000 (13:14 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 5 Jan 2018 12:00:53 +0000 (13:00 +0100)
bin/mozilla/wh.pl
locale/de/all
locale/en/all
sql/Pg-upgrade2/transfer_type_stocktaking.sql [new file with mode: 0644]

index 6d74a67..78b0576 100644 (file)
@@ -71,6 +71,7 @@ use strict;
 #  $locale->text('return_material')
 #  $locale->text('release_material')
 #  $locale->text('assembled')
+#  $locale->text('stocktaking')
 
 # --------------------------------------------------------------------
 # Transfer
index 38a6080..ac2241d 100755 (executable)
@@ -4082,6 +4082,7 @@ $self->{texts} = {
   'start upload'                => 'Hochladen beginnt',
   'stock'                       => 'Einlagerung',
   'stock_br'                    => 'Eingel.',
+  'stocktaking'                 => 'Inventur',
   'succeeded'                   => 'erfolgreich',
   'sum'                         => 'Summe',
   'tax_chartaccno'              => 'Automatikkonto',
index 88bbbc2..935f8e1 100644 (file)
@@ -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 (file)
index 0000000..f47c543
--- /dev/null
@@ -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));