Solved Bug 579
authorUdo Spallek <info@wissensvermittlung.com>
Thu, 3 May 2007 12:29:20 +0000 (12:29 +0000)
committerUdo Spallek <info@wissensvermittlung.com>
Thu, 3 May 2007 12:29:20 +0000 (12:29 +0000)
sql/Pg-upgrade2/COA_Account_Settings001.sql [new file with mode: 0644]

diff --git a/sql/Pg-upgrade2/COA_Account_Settings001.sql b/sql/Pg-upgrade2/COA_Account_Settings001.sql
new file mode 100644 (file)
index 0000000..d603d3e
--- /dev/null
@@ -0,0 +1,16 @@
+-- @tag: COA_Account_Settings001
+-- @description: Aktualisierung des SKR03
+-- @depends: release_2_4_2  
+
+UPDATE taxkeys 
+  SET pos_ustva='861',
+      tax_id=(SELECT id FROM tax WHERE taxkey='2'),
+      taxkey_id='2'
+  WHERE startdate='1970-01-01' 
+  AND chart_id = (SELECT id FROM chart WHERE accno ='1771')
+  AND
+  EXISTS ( -- update only for SKR03
+    SELECT coa FROM defaults 
+      WHERE defaults.coa='Germany-DATEV-SKR03EU'
+  );  
+