projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scripts/console: utf8 Kompatibilität und Doku zu Term::ReadLine::Gnu
[kivitendo-erp.git]
/
sql
/
Pg-upgrade2
/
ustva_setup_2007_update_chart_taxkeys_tax.sql
diff --git
a/sql/Pg-upgrade2/ustva_setup_2007_update_chart_taxkeys_tax.sql
b/sql/Pg-upgrade2/ustva_setup_2007_update_chart_taxkeys_tax.sql
index
b2d11b5
..
f6396c6
100644
(file)
--- a/
sql/Pg-upgrade2/ustva_setup_2007_update_chart_taxkeys_tax.sql
+++ b/
sql/Pg-upgrade2/ustva_setup_2007_update_chart_taxkeys_tax.sql
@@
-1,23
+1,25
@@
-- @tag: ustva_setup_2007_update_chart_taxkeys_tax
-- @tag: ustva_setup_2007_update_chart_taxkeys_tax
--- @description: Aktualisierung des SKR03 f
ür 2006/2007. Es werden bisher nur Inland Buchungen 16%/19% in 2006/2007 unterstü
tzt.
+-- @description: Aktualisierung des SKR03 f
ür 2006/2007. Es werden bisher nur Inland Buchungen 16%/19% in 2006/2007 unterstü
tzt.
-- @depends: ustva_setup_2007
--#############################################################
--#
-- @depends: ustva_setup_2007
--#############################################################
--#
---# Neue Konten einf
ü
gen
+--# Neue Konten einf
ü
gen
--#
--#############################################################
INSERT INTO chart (
accno, description,
--#
--#############################################################
INSERT INTO chart (
accno, description,
- charttype, category, link
+ charttype, category, link,
+ taxkey_id
)
SELECT
'1570','Anrechenbare Vorsteuer',
)
SELECT
'1570','Anrechenbare Vorsteuer',
- 'A', 'E', 'AP_tax:IC_taxpart:IC_taxservice:CT_tax'
+ 'A', 'E', 'AP_tax:IC_taxpart:IC_taxservice',
+ 0
WHERE EXISTS ( -- update only for SKR03
SELECT coa FROM defaults
WHERE defaults.coa='Germany-DATEV-SKR03EU'
WHERE EXISTS ( -- update only for SKR03
SELECT coa FROM defaults
WHERE defaults.coa='Germany-DATEV-SKR03EU'
@@
-26,11
+28,13
@@
WHERE EXISTS ( -- update only for SKR03
INSERT INTO chart (
accno, description,
INSERT INTO chart (
accno, description,
- charttype, category, link
+ charttype, category, link,
+ taxkey_id
)
SELECT
'1574','Abziehbare Vorsteuer aus innergem. Erwerb 19 %',
)
SELECT
'1574','Abziehbare Vorsteuer aus innergem. Erwerb 19 %',
- 'A', 'E', 'AP_tax:IC_taxpart:IC_taxservice:CT_tax'
+ 'A', 'E', 'AP_tax:IC_taxpart:IC_taxservice',
+ 0
WHERE EXISTS ( -- update only for SKR03
SELECT coa FROM defaults
WHERE defaults.coa='Germany-DATEV-SKR03EU'
WHERE EXISTS ( -- update only for SKR03
SELECT coa FROM defaults
WHERE defaults.coa='Germany-DATEV-SKR03EU'
@@
-39,11
+43,13
@@
WHERE EXISTS ( -- update only for SKR03
INSERT INTO chart (
accno, description,
INSERT INTO chart (
accno, description,
- charttype, category, link
+ charttype, category, link,
+ taxkey_id
)
SELECT
'1774','Umsatzsteuer aus innergem. Erwerb 19 %',
)
SELECT
'1774','Umsatzsteuer aus innergem. Erwerb 19 %',
- 'A', 'I', 'AR_tax:IC_taxpart:IC_taxservice:CT_tax'
+ 'A', 'I', 'AR_tax:IC_taxpart:IC_taxservice',
+ 0
WHERE EXISTS ( -- update only for SKR03
SELECT coa FROM defaults
WHERE defaults.coa='Germany-DATEV-SKR03EU'
WHERE EXISTS ( -- update only for SKR03
SELECT coa FROM defaults
WHERE defaults.coa='Germany-DATEV-SKR03EU'
@@
-182,7
+188,7
@@
WHERE taxkey = '11'
;
UPDATE tax SET
;
UPDATE tax SET
- taxdescription = 'Steuerpflichtige EG-Lieferung zum erm
äß
igten Steuersatz'
+ taxdescription = 'Steuerpflichtige EG-Lieferung zum erm
äß
igten Steuersatz'
WHERE taxkey = '12'
AND
EXISTS ( -- update only for SKR03
WHERE taxkey = '12'
AND
EXISTS ( -- update only for SKR03
@@
-203,7
+209,7
@@
WHERE taxkey = '13'
UPDATE tax SET
UPDATE tax SET
- taxdescription = 'Steuerpflichtiger innergem. Erwerb zum erm
äß
igten Steuersatz'
+ taxdescription = 'Steuerpflichtiger innergem. Erwerb zum erm
äß
igten Steuersatz'
WHERE taxkey = '18'
AND
EXISTS ( -- update only for SKR03
WHERE taxkey = '18'
AND
EXISTS ( -- update only for SKR03
@@
-222,7
+228,7
@@
WHERE taxkey = '19'
)
;
)
;
--- Weitere Steuerschl
üssel hinzufü
gen
+-- Weitere Steuerschl
üssel hinzufü
gen
INSERT INTO tax (
chart_id,
INSERT INTO tax (
chart_id,