From 2fc0c33e6eb479f20a00baa9f24a5bffc9690286 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Thu, 3 May 2007 12:29:20 +0000 Subject: [PATCH] Solved Bug 579 --- sql/Pg-upgrade2/COA_Account_Settings001.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sql/Pg-upgrade2/COA_Account_Settings001.sql diff --git a/sql/Pg-upgrade2/COA_Account_Settings001.sql b/sql/Pg-upgrade2/COA_Account_Settings001.sql new file mode 100644 index 000000000..d603d3ee5 --- /dev/null +++ b/sql/Pg-upgrade2/COA_Account_Settings001.sql @@ -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' + ); + -- 2.20.1