From: Sven Schöling Date: Fri, 9 Nov 2012 15:06:32 +0000 (+0100) Subject: Skontokonten korrekt typisieren X-Git-Tag: release-3.0.0beta1~13 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=67233506b5a94c4f7ea0165d64233c10cdd7bbf7;p=kivitendo-erp.git Skontokonten korrekt typisieren behebt #1975 --- diff --git a/sql/Pg-upgrade2/chart_type_skonto.sql b/sql/Pg-upgrade2/chart_type_skonto.sql new file mode 100644 index 000000000..2a090e1b8 --- /dev/null +++ b/sql/Pg-upgrade2/chart_type_skonto.sql @@ -0,0 +1,15 @@ +-- @tag: chart_type_skonto +-- @description: SKR: Gewährte Skonti sind Erlöskonten, erhaltene Skonti sind Aufwandskonten +-- @depends: release_2_7_0 +-- @encoding: utf-8 + +UPDATE chart SET category = 'I' WHERE accno = '8731' AND EXISTS (SELECT * FROM defaults WHERE coa = 'Germany-DATEV-SKR03EU'); +UPDATE chart SET category = 'I' WHERE accno = '8735' AND EXISTS (SELECT * FROM defaults WHERE coa = 'Germany-DATEV-SKR03EU'); +UPDATE chart SET category = 'E' WHERE accno = '3731' AND EXISTS (SELECT * FROM defaults WHERE coa = 'Germany-DATEV-SKR03EU'); +UPDATE chart SET category = 'E' WHERE accno = '3735' AND EXISTS (SELECT * FROM defaults WHERE coa = 'Germany-DATEV-SKR03EU'); + +UPDATE chart SET category = 'I' WHERE accno = '4731' AND EXISTS (SELECT * FROM defaults WHERE coa = 'Germany-DATEV-SKR04EU'); +UPDATE chart SET category = 'I' WHERE accno = '4735' AND EXISTS (SELECT * FROM defaults WHERE coa = 'Germany-DATEV-SKR04EU'); +UPDATE chart SET category = 'I' WHERE accno = '4736' AND EXISTS (SELECT * FROM defaults WHERE coa = 'Germany-DATEV-SKR04EU'); +UPDATE chart SET category = 'E' WHERE accno = '5731' AND EXISTS (SELECT * FROM defaults WHERE coa = 'Germany-DATEV-SKR04EU'); +UPDATE chart SET category = 'E' WHERE accno = '5735' AND EXISTS (SELECT * FROM defaults WHERE coa = 'Germany-DATEV-SKR04EU');