Revision acaca478
Von Udo Spallek vor mehr als 17 Jahren hinzugefügt
sql/Pg-upgrade2/USTVA_at.pl | ||
---|---|---|
1 |
# @tag: USTVA_at |
|
2 |
# @description: USTVA Report Daten fuer Oesterreich. Vielen Dank an Gerhard Winkler.. |
|
3 |
# @depends: USTVA_abstraction |
|
4 |
|
|
5 |
unless ( $main::form ) { |
|
6 |
die("This script cannot be run from the command line."); |
|
7 |
} |
|
8 |
|
|
9 |
if ( check_coa('Austria') ){ |
|
10 |
|
|
11 |
if ( coa_is_empty() ) { |
|
12 |
print qq|Eine leere Datenbank mit Kontenrahmen ?sterreich vorgefunden. <br /> |
|
13 |
Die Aktualisierungen werden eingespielt...<br /> |
|
14 |
<b>Achtung: Dieses Update ist ungetestet und bedarf weiterer Konfiguration</b>|; |
|
15 |
|
|
16 |
return 1 |
|
17 |
&& clear_tables(( 'tax.report_variables', 'tax.report_headings', |
|
18 |
'tax.report_categorys', 'taxkeys', |
|
19 |
'tax', 'chart', |
|
20 |
'buchungsgruppen', |
|
21 |
)) |
|
22 |
&& do_copy_tax_report_structure() |
|
23 |
&& do_insert_chart() |
|
24 |
&& do_insert_tax() |
|
25 |
&& do_insert_taxkeys() |
|
26 |
&& do_insert_buchungsgruppen() |
|
27 |
; |
|
28 |
} |
|
29 |
else { |
|
30 |
print qq|Eine ?sterreichische Datenbank in der bereits Buchungss?tze enthalten sind, kann nicht aktualisiert werden.<br /> |
|
31 |
Bitte eine neue Datenbank mit Kontenrahmen 'Austria' anlegen.|; |
|
32 |
return 1; |
|
33 |
} |
|
34 |
|
|
35 |
} |
|
36 |
else { |
|
37 |
print qq|Nichts zu tun in diesem Kontenrahmen.|; |
|
38 |
return 1; |
|
39 |
} |
|
40 |
|
|
41 |
return 0; |
|
42 |
|
|
43 |
###################################################### |
|
44 |
|
|
45 |
sub mydberror { |
|
46 |
my ($msg) = @_; |
|
47 |
die($dbup_locale->text("Database update error:") . |
|
48 |
"<br>$msg<br>" . $DBI::errstr); |
|
49 |
} |
|
50 |
|
|
51 |
sub do_query { |
|
52 |
my ($query, $may_fail) = @_; |
|
53 |
|
|
54 |
if (!$dbh->do($query)) { |
|
55 |
mydberror($query) unless ($may_fail); |
|
56 |
$dbh->rollback(); |
|
57 |
$dbh->begin_work(); |
|
58 |
} |
|
59 |
} |
|
60 |
|
|
61 |
|
|
62 |
sub clear_tables { |
|
63 |
|
|
64 |
my @clear = @_; |
|
65 |
|
|
66 |
my @queries = ( |
|
67 |
q{ DELETE FROM tax.report_categorys; }, |
|
68 |
q{ DELETE FROM tax.report_headings; }, |
|
69 |
q{ DELETE FROM tax.report_variables; }, |
|
70 |
); |
|
71 |
|
|
72 |
map({ do_query("DELETE FROM $_ ;", 0); } @clear); |
|
73 |
|
|
74 |
return 1; |
|
75 |
|
|
76 |
} |
|
77 |
|
|
78 |
sub check_coa { |
|
79 |
|
|
80 |
my ( $want_coa ) = @_; |
|
81 |
|
|
82 |
my $query = q{ SELECT count(*) FROM defaults WHERE coa = ? }; |
|
83 |
my ($have_coa) = selectrow_query($form, $dbh, $query, $want_coa); |
|
84 |
|
|
85 |
return $have_coa; |
|
86 |
|
|
87 |
} |
|
88 |
|
|
89 |
sub coa_is_empty { |
|
90 |
|
|
91 |
my $query = q{ SELECT count(*) |
|
92 |
FROM ar, ap, gl, invoice, acc_trans, customer, vendor, parts |
|
93 |
}; |
|
94 |
my ($empty) = selectrow_query($form, $dbh, $query); |
|
95 |
|
|
96 |
$empty = !$empty; |
|
97 |
|
|
98 |
return $empty; |
|
99 |
} |
|
100 |
|
|
101 |
|
|
102 |
sub do_copy_tax_report_structure { |
|
103 |
|
|
104 |
my @queries = ( |
|
105 |
"INSERT INTO tax.report_categorys (id, description, subdescription) VALUES (0, NULL, NULL)", |
|
106 |
"INSERT INTO tax.report_headings (id, category_id, type, description, subdescription) VALUES (0, 0, NULL, NULL, NULL)", |
|
107 |
); |
|
108 |
|
|
109 |
map({ do_query($_); } @queries); |
|
110 |
|
|
111 |
|
|
112 |
my @copy_statements = ( |
|
113 |
"INSERT INTO tax.report_variables (id, position, heading_id, description, dec_places, valid_from) VALUES (?, ?, ?, ?, ?, ?)", |
|
114 |
); |
|
115 |
|
|
116 |
|
|
117 |
my @copy_data = ( |
|
118 |
[ |
|
119 |
"1;000;0;a) Gesamtbetrag der Bemessungsgrundlage f?r Lieferungen und sonstige Leistungen (ohne den nachstehend angef?hrten Eigenverbrauch) einschlie?lich Anzahlungen (jeweils ohne Umsatzsteuer);2;1970-01-01", |
|
120 |
"2;001;0;zuz?glich Eigenverbrauch (?1 Abs. 1 Z 2, ? 3 Abs. 2 und ? 3a Abs. 1a);2;1970-01-01", |
|
121 |
"3;021;0;abz?glich Ums?tze f?r die die Steuerschuld gem?? ? 19 Abs. 1 zweiter Satz sowie gem?? ? 19 Abs. 1a, Abs. 1b, Abs. 1c auf den Leistungsempf?nger ?bergegangen ist.;2;1970-01-01", |
|
122 |
"4;011;0;a) ?6 Abs. 1 Z 1 iVm ? 7 (Ausfuhrlieferungen);2;1970-01-01", |
|
123 |
"5;012;0;b) ?6 Abs. 1 Z 1 iVm ? 8 (Lohnveredelungen);2;1970-01-01", |
|
124 |
"6;015;0;c) ?6 Abs. 1 Z 2 bis 6 sowie ? 23 Abs. 5 (Seeschifffahrt, Luftfahrt, grenz?berschreitende Personenbef?rderung, Diplomaten, Reisevorleistungen im Drittlandsgebiet usw.);2;1970-01-01", |
|
125 |
"7;017;0;d) Art. 6 Abs. 1 (innergemeinschaftliche Lieferungen ohne die nachstehend gesondert anzuf?hrenden Fahrzeuglieferungen);2;1970-01-01", |
|
126 |
"8;018;0;e) Art. 6 Abs. 1, sofern Lieferungen neuer Fahrzeuge an Abnehmer ohne UID-Nummer bzw. durch Fahrzeuglieferer gem?? Art. 2 erfolgen.;2;1970-01-01", |
|
127 |
"9;019;0;a) ? 6 Abs. 1 Z 9 lit. a (Grundst?cksums?tze);2;1970-01-01", |
|
128 |
"10;016;0;b) ?6 Abs. 1 Z 27 (Kleinunternehmer);2;1970-01-01", |
|
129 |
"11;020;0;c) ? 6 Abs. 1 Z ___ (?brige steuerfreie Ums?tze ohne Vorsteuerabzug);2;1970-01-01", |
|
130 |
"12;022_links;0;20% Nominalsteuersatz;2;1970-01-01", |
|
131 |
"13;022_rechts;0;20% Nominalsteuersatz;2;1970-01-01", |
|
132 |
"14;029_links;0;10% erm??igter Steuersatz;2;1970-01-01", |
|
133 |
"15;029_rechts;0;10% erm??igter Steuersatz;2;1970-01-01", |
|
134 |
"16;025_links;0;12% f?r Weinums?tze durch landwirtschaftliche Betriebe;2;1970-01-01", |
|
135 |
"17;025_rechts;0;12% f?r Weinums?tze durch landwirtschaftliche Betriebe;2;1970-01-01", |
|
136 |
"18;035_links;0;16% f?r Jungholz und Mittelberg;2;1970-01-01", |
|
137 |
"19;035_rechts;0;16% f?r Jungholz und Mittelberg;2;1970-01-01", |
|
138 |
"20;052_links;0;10% Zusatzsteuer f?r pauschalierte land- und forstwirtschaftliche Betriebe;2;1970-01-01", |
|
139 |
"21;052_rechts;0;10% Zusatzsteuer f?r pauschalierte land- und forstwirtschaftliche Betriebe;2;1970-01-01", |
|
140 |
"22;038_links;0;8% Zusatzsteuer f?r pauschalierte land- und forstwirtschaftliche Betriebe;2;1970-01-01", |
|
141 |
"23;038_rechts;0;8% Zusatzsteuer f?r pauschalierte land- und forstwirtschaftliche Betriebe;2;1970-01-01", |
|
142 |
"24;056;0;Steuerschuld gem?? ? 11 Abs. 12 und 14, ? 16 Abs. 2 sowie gem?? Art. 7 Abs. 4;2;1970-01-01", |
|
143 |
"25;057;0;Steuerschuld gem?? ? 19 Abs. 1 zweiter Satz, ? 19 Abs. 1c sowie gem?? Art. 25 Abs. 5;2;1970-01-01", |
|
144 |
"26;048;0;Steuerschuld gem?? ? 19 Abs. 1a (Bauleistungen);2;1970-01-01", |
|
145 |
"27;044;0;Steuerschuld gem?? ? 19 Abs. 1b (Sicherungseigentum, Vorbehaltseigentum und Grundst?cke im Zwangsversteigerungsverfahren);2;1970-01-01", |
|
146 |
"28;070;0;Gesamtbetrag der Bemessungsgrundlagen f?r innergemeinschaftliche Erwerbe;2;1970-01-01", |
|
147 |
"29;071;0;Davon Steuerfrei gem?? Art. 6 Abs 2;2;1970-01-01", |
|
148 |
"30;072_links;0;20% Nominalsteuersatz;2;1970-01-01", |
|
149 |
"31;072_rechts;0;20% Nominalsteuersatz;2;1970-01-01", |
|
150 |
"32;073_links;0;10% erm??igter Steuersatz;2;1970-01-01", |
|
151 |
"33;073_rechts;0;10% erm??igter Steuersatz;2;1970-01-01", |
|
152 |
"34;075_links;0;16% f?r Jungholz und Mittelberg;2;1970-01-01", |
|
153 |
"35;075_rechts;0;16% f?r Jungholz und Mittelberg;2;1970-01-01", |
|
154 |
"36;076;0;Erwerbe gem?? Art. 3 Abs. 8 zweiter Satz, die im Mitgliedstaat des Bestimmungslandes besteuert worden sind;2;1970-01-01", |
|
155 |
"37;077;0;Erwerbe gem?? Art. 3 Abs. 8 zweiter Satz, die gem?? Art. 25 Abs. 2 im Inland als besteuert gelten;2;1970-01-01", |
|
156 |
"38;060;0;Gesamtbetrag der Vorsteuern (ohne die nachstehend gesondert anzuf?hrenden Betr?ge);2;1970-01-01", |
|
157 |
"39;061;0;Vorsteuern betreffend die entrichtete Einfuhrumsatzsteuer (?12 Abs. 1 Z 2 lit.a);2;1970-01-01", |
|
158 |
"40;083;0;Vorsteuern betreffend die am Abgabenkonto verbuchte Einfuhrumsatzsteuer (?12 Abs. 1 Z 2 lit.b);2;1970-01-01", |
|
159 |
"41;065;0;Vorsteuern aus dem innergemeinschaftlichen Erwerb;2;1970-01-01", |
|
160 |
"42;066;0;Vorsteuern betreffend der Steuerschuld gem?? ? 19 Abs. 1c sowie gem?? Art. 25 Abs. 5;2;1970-01-01", |
|
161 |
"43;082;0;Vorsteuern betreffend der Steuerschuld gem?? ? 19 Abs. 1a (Bauleistungen);2;1970-01-01", |
|
162 |
"44;087;0;Vorsteuern betreffend die Steuerschuld gem?? ? 19 Abs. 1b (Sicherungseigentum, Vorbehaltseigentum und Grundst?cke im Zwangsversteigerungsverfahren);2;1970-01-01", |
|
163 |
"45;064;0;Vorsteuern gem?? ?12 Abs. 16 und Vorsteuern f?r innergemeinschaftliche Lieferungen neuer Fahrzeuge von Fahrzeuglieferanten gem?? Art. 2;2;1970-01-01", |
|
164 |
"46;062;0;Davon gem?? ? 12 Abs. 3 iVm Abs. 4 und 5;2;1970-01-01", |
|
165 |
"47;063;0;Berichtigung gem?? ? 12 Abs. 10 und 11;2;1970-01-01", |
|
166 |
"48;067;0;Berichtigung gem?? ? 16;2;1970-01-01", |
|
167 |
"49;090;0;Sonstige Berichtigungen;2;1970-01-01", |
|
168 |
"50;095;0;Zahllast/Gutschrift;2;1970-01-01", |
|
169 |
], |
|
170 |
); |
|
171 |
|
|
172 |
for my $statement ( 0 .. $#copy_statements ) { |
|
173 |
my $query = $iconv->convert($copy_statements[$statement]); |
|
174 |
my $sth = $dbh->prepare($query) || mydberror($query); |
|
175 |
|
|
176 |
for my $copy_line ( 0 .. $#{$copy_data[$statement]} ) { |
|
177 |
#print $copy_data[$statement][$copy_line] . "<br />" |
|
178 |
$sth->execute(split m/;/, $iconv->convert($copy_data[$statement][$copy_line]), -1) || mydberror($query); |
|
179 |
} #/ |
|
180 |
$sth->finish(); |
|
181 |
} |
|
182 |
return 1; |
|
183 |
} |
|
184 |
|
|
185 |
sub do_insert_chart { |
|
186 |
|
|
187 |
my @copy_statements = ( |
|
188 |
"INSERT INTO chart VALUES (1, '0000', 'AUFWENDUNGEN F?R INGANGSETZEN UND ERWEITERN DES BETRIEBES', 'H', 'A', '', '00', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.276724', NULL, NULL, NULL);", |
|
189 |
"INSERT INTO chart VALUES (2, '0010', 'Firmenwert', 'A', 'A', 'AP_amount', '015', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.28365', NULL, NULL, NULL);", |
|
190 |
"INSERT INTO chart VALUES (3, '0100', 'IMMATERIELLE VERM?GENSGEGENST?NDE', 'H', 'A', '', '01', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.288542', NULL, NULL, NULL);", |
|
191 |
"INSERT INTO chart VALUES (4, '0110', 'Rechte', 'A', 'A', 'AP_amount', '011', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.291937', NULL, NULL, NULL);", |
|
192 |
"INSERT INTO chart VALUES (5, '0200', 'GRUNDST?CKE', 'H', 'A', '', '02-03', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.294929', NULL, NULL, NULL);", |
|
193 |
"INSERT INTO chart VALUES (6, '0210', 'unbebaute Grundst?cke', 'A', 'A', 'AP_amount', '020', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.297958', NULL, NULL, NULL);", |
|
194 |
"INSERT INTO chart VALUES (7, '0220', 'bebaute Grundst?cke', 'A', 'A', 'AP_amount', '021', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.300987', NULL, NULL, NULL);", |
|
195 |
"INSERT INTO chart VALUES (8, '0229', 'kum. Abschreibung bebaute Grundst?cke', 'A', 'A', '', '039', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.304114', NULL, NULL, NULL);", |
|
196 |
"INSERT INTO chart VALUES (10, '0410', 'Maschinen', 'A', 'A', 'AP_amount', '041', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.312216', NULL, NULL, NULL);", |
|
197 |
"INSERT INTO chart VALUES (11, '0419', 'kum. Abschreibung Maschinen', 'A', 'A', '', '069', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.316198', NULL, NULL, NULL);", |
|
198 |
"INSERT INTO chart VALUES (12, '0500', 'FAHRZEUGE', 'H', 'A', '', '06', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.319978', NULL, NULL, NULL);", |
|
199 |
"INSERT INTO chart VALUES (13, '0510', 'Fahrzeuge', 'A', 'A', 'AP_amount', '063', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.323002', NULL, NULL, NULL);", |
|
200 |
"INSERT INTO chart VALUES (14, '0519', 'kum. Abschreibung Fahrzeuge', 'A', 'A', '', '069', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.326041', NULL, NULL, NULL);", |
|
201 |
"INSERT INTO chart VALUES (15, '0600', 'BETRIEBS- UND GESCH?FTSAUSSTATTUNG', 'H', 'A', '', '06', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.330691', NULL, NULL, NULL);", |
|
202 |
"INSERT INTO chart VALUES (16, '0620', 'B?roeinrichtungen', 'A', 'A', 'AP_amount', '066', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.33373', NULL, NULL, NULL);", |
|
203 |
"INSERT INTO chart VALUES (17, '0625', 'kum. Abschreibung Betriebs- und Gesch?ftsausstattung', 'A', 'A', '', '069', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.336939', NULL, NULL, NULL);", |
|
204 |
"INSERT INTO chart VALUES (18, '0700', 'GELEISTETE ANZAHLUNGEN', 'H', 'A', '', '07', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.340614', NULL, NULL, NULL);", |
|
205 |
"INSERT INTO chart VALUES (19, '0800', 'FINANZANLAGEN', 'H', 'A', '', '08-09', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.3436', NULL, NULL, NULL);", |
|
206 |
"INSERT INTO chart VALUES (20, '0810', 'Beteiligungen', 'A', 'A', 'AP_amount', '081', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.346638', NULL, NULL, NULL);", |
|
207 |
"INSERT INTO chart VALUES (21, '0820', 'Wertpapiere', 'A', 'A', 'AP_amount', '080', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.351452', NULL, NULL, NULL);", |
|
208 |
"INSERT INTO chart VALUES (22, '1100', 'ROHSTOFFE', 'H', 'A', '', '1', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.354419', NULL, NULL, NULL);", |
|
209 |
"INSERT INTO chart VALUES (23, '1120', 'Vorr?te - Rohstoffe', 'A', 'A', 'IC', '110-119', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.357447', NULL, NULL, NULL);", |
|
210 |
"INSERT INTO chart VALUES (24, '1200', 'BEZOGENE TEILE', 'H', 'A', '', '1', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.360423', NULL, NULL, NULL);", |
|
211 |
"INSERT INTO chart VALUES (25, '1220', 'Vorr?te - bezogene Teile', 'A', 'A', 'IC', '120-129', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.363627', NULL, NULL, NULL);", |
|
212 |
"INSERT INTO chart VALUES (26, '1300', 'HILFS- UND BETRIEBSSTOFFE', 'H', 'A', '', '1', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.368083', NULL, NULL, NULL);", |
|
213 |
"INSERT INTO chart VALUES (27, '1320', 'Hilfsstoffe', 'A', 'A', 'IC', '130-134', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.372229', NULL, NULL, NULL);", |
|
214 |
"INSERT INTO chart VALUES (28, '1350', 'Betriebssstoffe', 'A', 'A', 'IC', '135-139', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.375303', NULL, NULL, NULL);", |
|
215 |
"INSERT INTO chart VALUES (29, '1400', 'UNFERTIGE ERZEUGNISSE', 'H', 'A', '', '1', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.378277', NULL, NULL, NULL);", |
|
216 |
"INSERT INTO chart VALUES (30, '1420', 'Vorr?te - unfertige Erzeugnisse', 'A', 'A', 'IC', '140-149', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.381463', NULL, NULL, NULL);", |
|
217 |
"INSERT INTO chart VALUES (31, '1500', 'FERTIGE ERZEUGNISSE', 'H', 'A', '', '1', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.384434', NULL, NULL, NULL);", |
|
218 |
"INSERT INTO chart VALUES (34, '1540', 'Vorr?te - Gruppe C', 'A', 'A', 'IC', '150-159', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.395426', NULL, NULL, NULL);", |
|
219 |
"INSERT INTO chart VALUES (35, '1600', 'WAREN', 'H', 'A', '', '1', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.39872', NULL, NULL, NULL);", |
|
220 |
"INSERT INTO chart VALUES (36, '1700', 'NOCH NICHT ABGERECHNETE LEISTUNGEN', 'H', 'A', '', '1', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.401807', NULL, NULL, NULL);", |
|
221 |
"INSERT INTO chart VALUES (37, '1800', 'GELEISTETE ANZAHLUNGEN', 'H', 'A', '', '1', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.404851', NULL, NULL, NULL);", |
|
222 |
"INSERT INTO chart VALUES (38, '1900', 'WERTBERICHTIGUNGEN', 'H', 'A', '', '1', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.409611', NULL, NULL, NULL);", |
|
223 |
"INSERT INTO chart VALUES (39, '2000', 'FORDEUNGEN AUS LIEFERUNGEN UND LEISTUNGEN', 'H', 'A', '', '2', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.412995', NULL, NULL, NULL);", |
|
224 |
"INSERT INTO chart VALUES (41, '2019', 'Wertberichtigung uneinbringliche Forderungen', 'A', 'A', '', '20-21', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.420867', NULL, NULL, NULL);", |
|
225 |
"INSERT INTO chart VALUES (42, '2300', 'SONSTIGE FORDERUNGEN', 'H', 'A', '', '2', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.423897', NULL, NULL, NULL);", |
|
226 |
"INSERT INTO chart VALUES (43, '2320', 'sonstige Forderungen', 'A', 'A', 'AP_amount', '23-24', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.428868', NULL, NULL, NULL);", |
|
227 |
"INSERT INTO chart VALUES (44, '2500', 'FORDERUNGEN AUS ABGABENVERRECHNUNG', 'H', 'A', '', '2', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.432042', NULL, NULL, NULL);", |
|
228 |
"INSERT INTO chart VALUES (46, '2600', 'WERTPAPIERE UND ANTEILE', 'H', 'A', '', '2', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.438205', NULL, NULL, NULL);", |
|
229 |
"INSERT INTO chart VALUES (47, '2620', 'Wertpapiere Umlaufverm?gen', 'A', 'A', 'AP_amount', '26', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.441382', NULL, NULL, NULL);", |
|
230 |
"INSERT INTO chart VALUES (48, '2700', 'KASSABESTAND', 'H', 'A', '', '2', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.444391', NULL, NULL, NULL);", |
|
231 |
"INSERT INTO chart VALUES (50, '2800', 'SCHECKS, GUTHABEN BEI KREDITINSTITUTEN', 'H', 'A', '', '2', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.45237', NULL, NULL, NULL);", |
|
232 |
"INSERT INTO chart VALUES (53, '3100', 'LANGFRISTIGE VERBINDLICHKEITEN', 'H', 'L', '', '3', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.461985', NULL, NULL, NULL);", |
|
233 |
"INSERT INTO chart VALUES (54, '3110', 'Bank Verbindlichkeiten', 'A', 'L', '', '31', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.465019', NULL, NULL, NULL);", |
|
234 |
"INSERT INTO chart VALUES (56, '3300', 'VERBINDLICHKEITEN AUS LIEFERUNGEN UND LEISTUNGEN', 'H', 'L', '', '33', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.474305', NULL, NULL, NULL);", |
|
235 |
"INSERT INTO chart VALUES (58, '3500', 'VERBINDLICHKEITEN FINANZAMT', 'H', 'L', '', '35', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.480487', NULL, NULL, NULL);", |
|
236 |
"INSERT INTO chart VALUES (105, '7611', 'Reinigungsmaterial', 'A', 'E', 'AP_amount', '', 9, NULL, 11, 3, NULL, false, '2006-01-28 18:22:52.649072', '2006-02-03 15:26:38.591173', NULL, NULL);", |
|
237 |
"INSERT INTO chart VALUES (163, '7340', 'Reisekosten', 'A', 'E', 'AP_amount', '', 9, NULL, NULL, 3, NULL, false, '2006-02-03 15:38:11.636188', NULL, NULL, NULL);", |
|
238 |
"INSERT INTO chart VALUES (74, '4600', 'SONSTIGE ERL?SE', 'H', 'I', '', '4', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.539718', NULL, NULL, NULL);", |
|
239 |
"INSERT INTO chart VALUES (95, '7120', 'Grundsteuer', 'A', 'E', '', '', 0, NULL, 12, 3, NULL, false, '2006-01-28 18:22:52.612982', '2006-02-03 15:07:18.076256', NULL, NULL);", |
|
240 |
"INSERT INTO chart VALUES (94, '7110', 'Ertragssteuern', 'A', 'E', '', '', 0, NULL, 12, 3, NULL, false, '2006-01-28 18:22:52.60961', '2006-02-03 15:07:57.018877', NULL, NULL);", |
|
241 |
"INSERT INTO chart VALUES (159, '7130', 'Gewerbl. Sozialversicherung', 'A', 'E', 'AP_amount', '', 0, NULL, 12, 3, NULL, false, '2006-02-03 15:16:10.635938', NULL, NULL, NULL);", |
|
242 |
"INSERT INTO chart VALUES (82, '6000', 'LOHNAUFWAND', 'H', 'E', '', '6', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.566594', NULL, NULL, NULL);", |
|
243 |
"INSERT INTO chart VALUES (83, '6010', 'Lohn ', 'A', 'E', '', '600-619', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.572154', NULL, NULL, NULL);", |
|
244 |
"INSERT INTO chart VALUES (84, '6200', 'GEAHLTSAUFWAND', 'H', 'E', '', '6', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.575155', NULL, NULL, NULL);", |
|
245 |
"INSERT INTO chart VALUES (85, '6210', 'Gehalt ', 'A', 'E', '', '620-639', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.578104', NULL, NULL, NULL);", |
|
246 |
"INSERT INTO chart VALUES (86, '6500', 'GESETZLICHER SOZIALAUFWAND', 'H', 'E', '', '6', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.581152', NULL, NULL, NULL);", |
|
247 |
"INSERT INTO chart VALUES (87, '6510', 'Dienstgeberanteile', 'A', 'E', '', '645-649', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.584214', NULL, NULL, NULL);", |
|
248 |
"INSERT INTO chart VALUES (88, '6700', 'FREIWILLIGER SOZIALAUFWAND', 'H', 'E', '', '6', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.589022', NULL, NULL, NULL);", |
|
249 |
"INSERT INTO chart VALUES (89, '6710', 'freiwilliger Sozialaufwand', 'A', 'E', '', '660-665', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.592541', NULL, NULL, NULL);", |
|
250 |
"INSERT INTO chart VALUES (90, '7000', 'ABSCHREIBUNGEN', 'H', 'E', '', '7', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.595566', NULL, NULL, NULL);", |
|
251 |
"INSERT INTO chart VALUES (91, '7010', 'Abschreibungen', 'A', 'E', '', '700', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.598657', NULL, NULL, NULL);", |
|
252 |
"INSERT INTO chart VALUES (92, '7020', 'geringwertige Wirtschaftsg?ter', 'A', 'E', 'AP_amount', '701-708', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.601829', NULL, NULL, NULL);", |
|
253 |
"INSERT INTO chart VALUES (93, '7100', 'SONSTIGE STEUERN', 'H', 'E', '', '71', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.604871', NULL, NULL, NULL);", |
|
254 |
"INSERT INTO chart VALUES (96, '7200', 'INSTANDHALTUNGSAUFWAND', 'H', 'E', '', '7', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.6171', NULL, NULL, NULL);", |
|
255 |
"INSERT INTO chart VALUES (98, '7300', 'TRANSPORTKOSTEN', 'H', 'L', '', '73', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.623721', NULL, NULL, NULL);", |
|
256 |
"INSERT INTO chart VALUES (100, '7400', 'MIET-,PACHT-,LEASING-, LIZENZAUFWAND', 'H', 'E', '', '74', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.631869', NULL, NULL, NULL);", |
|
257 |
"INSERT INTO chart VALUES (113, '7710', 'Sachversicherung', 'A', 'E', 'AP_amount', '', 0, NULL, 13, NULL, NULL, false, '2006-01-28 18:22:52.677258', '2006-02-03 15:19:30.793109', NULL, NULL);", |
|
258 |
"INSERT INTO chart VALUES (103, '7600', 'VERWALTUNGSKOSTEN', 'H', 'E', '', '76', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.641023', NULL, NULL, NULL);", |
|
259 |
"INSERT INTO chart VALUES (161, '7780', 'Beitr?ge zur Berufsvertretung', 'A', 'E', 'AP_amount', '', 0, NULL, NULL, 3, NULL, false, '2006-02-03 15:33:11.055578', NULL, NULL, NULL);", |
|
260 |
"INSERT INTO chart VALUES (102, '7420', 'Betriebsk. und ant. AfA Garage + Werkst.', 'A', 'E', 'AP_amount', '', 0, NULL, NULL, 3, NULL, false, '2006-01-28 18:22:52.637918', '2006-02-03 15:41:13.126408', NULL, NULL);", |
|
261 |
"INSERT INTO chart VALUES (112, '7700', 'VERSICHERUNGEN UND ?BRIGE AUFW?NDUNGEN', 'H', 'E', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.674186', '2006-02-03 15:44:43.301845', NULL, NULL);", |
|
262 |
"INSERT INTO chart VALUES (114, '8000', 'FINANZERTR?GE UND FINANZAUFW?NDUNGEN', 'H', 'L', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.680743', '2006-02-03 15:45:08.299546', NULL, NULL);", |
|
263 |
"INSERT INTO chart VALUES (33, '1530', 'Vorr?te Gruppe B', 'A', 'A', 'IC', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.392343', '2006-02-03 16:25:53.167131', NULL, NULL);", |
|
264 |
"INSERT INTO chart VALUES (120, '9020', 'nicht einbezahltes Kapital', 'A', 'Q', '', '919', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.700926', NULL, NULL, NULL);", |
|
265 |
"INSERT INTO chart VALUES (121, '9200', 'KAPITALR?CKLAGEN', 'H', 'Q', '', '9', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.703925', NULL, NULL, NULL);", |
|
266 |
"INSERT INTO chart VALUES (122, '9210', 'freie R?cklage', 'A', 'Q', '', '920-929', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.708819', NULL, NULL, NULL);", |
|
267 |
"INSERT INTO chart VALUES (123, '9300', 'GEWINN', 'H', 'Q', '', '939', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.712247', NULL, NULL, NULL);", |
|
268 |
"INSERT INTO chart VALUES (124, '9310', 'Gewinnvortrag Vorjahr', 'A', 'Q', '', '980', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.716177', NULL, NULL, NULL);", |
|
269 |
"INSERT INTO chart VALUES (125, '9320', 'Jahresgewinn', 'A', 'Q', '', '985', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.719991', NULL, NULL, NULL);", |
|
270 |
"INSERT INTO chart VALUES (126, '9400', 'R?CKSTELLUNGEN', 'H', 'L', '', '3', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.723021', NULL, NULL, NULL);", |
|
271 |
"INSERT INTO chart VALUES (127, '9420', 'Abfertigungsr?ckstellung', 'A', 'L', '', '300', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.726006', NULL, NULL, NULL);", |
|
272 |
"INSERT INTO chart VALUES (128, '9430', 'Urlaubsr?ckstellung', 'A', 'L', '', '304-309', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.730698', NULL, NULL, NULL);", |
|
273 |
"INSERT INTO chart VALUES (129, '9700', 'EINLAGEN STILLER GESELLSCHAFTER', 'H', 'Q', '', '9', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.73381', NULL, NULL, NULL);", |
|
274 |
"INSERT INTO chart VALUES (71, '4300', 'UMSATZ DIENSTLEISTUNGEN', 'H', 'I', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.529746', '2006-01-28 18:34:28.843136', NULL, NULL);", |
|
275 |
"INSERT INTO chart VALUES (9, '0300', 'BETRIEBS- UND GESCH?FTSGEB?UDE', 'H', 'A', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.308885', '2006-02-02 09:31:17.849895', NULL, NULL);", |
|
276 |
"INSERT INTO chart VALUES (45, '2530', 'sonstige Forderungen aus Abgebenverrechnung', 'A', 'A', 'AP_amount', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.435243', '2006-02-02 09:59:42.729713', NULL, NULL);", |
|
277 |
"INSERT INTO chart VALUES (67, '4000', 'BETRIEBLICHE ERTR?GE', 'H', 'I', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.513926', '2006-02-02 10:05:21.278993', NULL, NULL);", |
|
278 |
"INSERT INTO chart VALUES (75, '4630', 'Erl?se aus Abgang vom Anlageverm?gen', 'A', 'I', 'AR_amount:IC_income', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.542817', '2006-02-02 10:09:41.959462', NULL, NULL);", |
|
279 |
"INSERT INTO chart VALUES (131, '4450', 'Erl?sschm?lerung durch Skontoaufwand', 'A', 'I', 'AR_amount', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.740526', '2006-02-02 10:20:51.822294', NULL, NULL);", |
|
280 |
"INSERT INTO chart VALUES (144, '4640', 'Ertr?ge aus Abgang vom Anlageverm?gen', 'A', 'I', 'AR_amount:IC_income', '', 0, NULL, NULL, NULL, NULL, false, '2006-02-02 10:24:49.118289', '2006-02-02 10:25:34.716838', NULL, NULL);", |
|
281 |
"INSERT INTO chart VALUES (118, '9000', 'KAPITAL, UNVERSTEUERTE R?CKLAGEN, ABSCHLUSS- UND EVIDENZKONTEN', 'H', 'Q', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.694841', '2006-02-02 10:28:27.424046', NULL, NULL);", |
|
282 |
"INSERT INTO chart VALUES (147, '9410', 'Privatentnahme', 'A', 'Q', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-02-02 11:52:04.383364', NULL, NULL, NULL);", |
|
283 |
"INSERT INTO chart VALUES (76, '5000', 'MATERIALAUFWAND', 'H', 'E', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.545768', '2006-02-02 12:02:53.065559', NULL, NULL);", |
|
284 |
"INSERT INTO chart VALUES (160, '7140', 'Fremdenverkehrsabgabe', 'A', 'E', 'AP_amount', '', 0, NULL, 12, 3, NULL, false, '2006-02-03 15:16:52.380825', NULL, NULL, NULL);", |
|
285 |
"INSERT INTO chart VALUES (99, '7310', 'Frachtaufwand durch Dritte', 'A', 'E', 'AP_amount:IC_expense', '', 9, NULL, NULL, 3, NULL, false, '2006-01-28 18:22:52.628717', '2006-02-03 15:22:49.082217', NULL, NULL);", |
|
286 |
"INSERT INTO chart VALUES (152, '7320', 'KFZ-Aufwand', 'A', 'E', 'AP_amount:IC_expense', '', 9, NULL, NULL, 3, NULL, false, '2006-02-02 12:22:18.511562', '2006-02-03 15:23:31.584235', NULL, NULL);", |
|
287 |
"INSERT INTO chart VALUES (80, '5600', 'VERBRAUCH BRENN- UND TREIBSTOFFE, ENERGIE UND WASSER', 'H', 'I', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.56006', '2006-02-02 12:17:24.198896', NULL, NULL);", |
|
288 |
"INSERT INTO chart VALUES (109, '7390', 'Porto und Postgeb?hren', 'A', 'E', 'AP_amount:IC_expense', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.661848', '2006-02-02 12:28:47.456197', NULL, NULL);", |
|
289 |
"INSERT INTO chart VALUES (101, '7410', 'Miete und Pachtaufwand', 'A', 'E', 'AP_amount', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.634888', '2006-02-02 12:29:27.184902', NULL, NULL);", |
|
290 |
"INSERT INTO chart VALUES (107, '7620', 'Zeitungen und Zeitschriften', 'A', 'E', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.655683', '2006-02-02 12:32:43.287819', NULL, NULL);", |
|
291 |
"INSERT INTO chart VALUES (106, '7670', 'Werbung und Marketing', 'A', 'E', 'AP_amount', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.652584', '2006-02-02 12:33:37.934111', NULL, NULL);", |
|
292 |
"INSERT INTO chart VALUES (110, '7680', 'Repr?sentationsaufwand', 'A', 'E', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.665034', '2006-02-02 12:35:16.950252', NULL, NULL);", |
|
293 |
"INSERT INTO chart VALUES (111, '7750', 'Rechtsberatung', 'A', 'E', 'AP_amount', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.671109', '2006-02-02 12:36:56.116865', NULL, NULL);", |
|
294 |
"INSERT INTO chart VALUES (153, '7755', 'Steuerberatung', 'A', 'E', 'AP_amount', '', 0, NULL, NULL, NULL, NULL, false, '2006-02-02 12:37:35.558667', NULL, NULL, NULL);", |
|
295 |
"INSERT INTO chart VALUES (115, '8280', 'Bankzinsen und Geb?hren', 'A', 'E', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.683783', '2006-02-02 12:41:44.274229', NULL, NULL);", |
|
296 |
"INSERT INTO chart VALUES (117, '8110', 'Ertr?ge aus Zinsen', 'A', 'I', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.691802', '2006-02-02 12:42:41.520779', NULL, NULL);", |
|
297 |
"INSERT INTO chart VALUES (132, '8050', 'Ertr?ge aus Wertpapieren', 'A', 'E', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.743602', '2006-02-02 12:44:29.033245', NULL, NULL);", |
|
298 |
"INSERT INTO chart VALUES (104, '7610', 'B?romaterial', 'A', 'E', 'AP_amount', '', 9, NULL, 11, 3, NULL, false, '2006-01-28 18:22:52.644151', '2006-02-03 15:25:38.53287', NULL, NULL);", |
|
299 |
"INSERT INTO chart VALUES (116, '8010', 'Ertr?ge aus Beteiligungen', 'A', 'I', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.688643', '2006-02-02 12:47:19.930787', NULL, NULL);", |
|
300 |
"INSERT INTO chart VALUES (119, '9010', 'Kapital, Gesch?ftsanteile', 'A', 'Q', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.69788', '2006-02-02 12:48:41.514201', NULL, NULL);", |
|
301 |
"INSERT INTO chart VALUES (108, '7380', 'Telefonkosten, Internetkosten', 'A', 'E', 'AP_amount', '', 9, NULL, 11, 3, NULL, false, '2006-01-28 18:22:52.658721', '2006-02-03 15:24:27.553821', NULL, NULL);", |
|
302 |
"INSERT INTO chart VALUES (32, '1520', 'Vorr?te Gruppe A', 'A', 'A', 'IC', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.389168', '2006-02-03 16:26:08.72507', NULL, NULL);", |
|
303 |
"INSERT INTO chart VALUES (52, '2820', 'Bankguthaben', 'A', 'A', 'AR_paid:AP_paid', '', 0, NULL, NULL, 1, NULL, false, '2006-01-28 18:22:52.458922', '2006-02-04 15:00:18.424069', NULL, NULL);", |
|
304 |
"INSERT INTO chart VALUES (59, '3550', 'Finanzamt Verrechnung K?rperschaftssteuer', 'A', 'L', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.483655', '2006-02-08 20:09:47.697565', NULL, NULL);", |
|
305 |
"INSERT INTO chart VALUES (60, '3540', 'Finanzamt Verrechnung Umsatzsteuer', 'A', 'L', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.48865', '2006-02-08 20:15:23.622013', NULL, NULL);", |
|
306 |
"INSERT INTO chart VALUES (78, '5030', 'Warengruppe 1 10 %', 'A', 'E', 'AP_amount:IC_cogs', '', 7, NULL, 4, 2, NULL, false, '2006-01-28 18:22:52.553586', '2006-02-08 20:31:31.539794', NULL, NULL);", |
|
307 |
"INSERT INTO chart VALUES (79, '5040', 'Warengruppe 2 20%', 'A', 'E', 'AP_amount:IC_cogs', '', 9, NULL, 4, 2, NULL, false, '2006-01-28 18:22:52.55679', '2006-02-03 14:44:38.100283', NULL, NULL);", |
|
308 |
"INSERT INTO chart VALUES (155, '5210', 'Sonst. Verbrauchsmaterial', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 3, NULL, false, '2006-02-03 14:49:06.01478', '2006-02-03 14:54:51.813269', NULL, NULL);", |
|
309 |
"INSERT INTO chart VALUES (146, '9850', 'Schlussbilanz', 'A', 'L', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-02-02 10:36:45.059659', '2006-02-02 10:38:05.014595', NULL, NULL);", |
|
310 |
"INSERT INTO chart VALUES (150, '5640', 'Verbrauch von sonstigen ?len und Schmierstoffen', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 1, 19, false, '2006-02-02 12:07:52.512006', '2006-02-03 15:01:09.867763', NULL, NULL);", |
|
311 |
"INSERT INTO chart VALUES (130, '9810', 'Er?ffnungsbilanz', 'A', 'L', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.736825', '2006-02-02 10:37:49.001565', NULL, NULL);", |
|
312 |
"INSERT INTO chart VALUES (164, '9800', 'BILANZKONTEN', 'H', 'L', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-03-06 22:23:47.795675', NULL, NULL, NULL);", |
|
313 |
"INSERT INTO chart VALUES (148, '5620', 'Verbrauch von Treibstoffen (Diesel)', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 2, 17, false, '2006-02-02 11:59:26.297394', '2006-02-03 15:00:02.362976', NULL, NULL);", |
|
314 |
"INSERT INTO chart VALUES (149, '5630', 'Verbrauch von Treib- und Schmierstoffen f?r Motors?gen', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 1, 19, false, '2006-02-02 12:01:05.969406', '2006-02-03 15:00:30.512596', NULL, NULL);", |
|
315 |
"INSERT INTO chart VALUES (158, '5650', 'gasf?rmige Brennstoffe', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 2, 12, false, '2006-02-03 15:02:36.649746', NULL, NULL, NULL);", |
|
316 |
"INSERT INTO chart VALUES (156, '5710', 'Warenbezugskosten', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 2, 8, false, '2006-02-03 14:56:21.395879', NULL, NULL, NULL);", |
|
317 |
"INSERT INTO chart VALUES (157, '5750', 'Fremdarbeit', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 2, NULL, false, '2006-02-03 14:58:23.887944', NULL, NULL, NULL);", |
|
318 |
"INSERT INTO chart VALUES (154, '5310', 'Arbeitskleidung', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 1, NULL, false, '2006-02-03 14:48:10.349391', '2006-02-03 16:23:46.154559', NULL, NULL);", |
|
319 |
"INSERT INTO chart VALUES (151, '5510', 'Verbrauchswerkzeug', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 2, NULL, false, '2006-02-02 12:19:18.193535', '2006-02-03 14:51:29.573924', NULL, NULL);", |
|
320 |
"INSERT INTO chart VALUES (81, '5610', 'Energie (Strom und Wasser)', 'A', 'E', 'AP_amount', '', 9, NULL, 4, 2, NULL, false, '2006-01-28 18:22:52.563249', '2006-02-03 14:59:32.292173', NULL, NULL);", |
|
321 |
"INSERT INTO chart VALUES (97, '7210', 'Reparatur und Instandhaltung', 'A', 'E', 'AP_amount', '', 9, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.620315', '2006-02-03 15:14:08.186799', NULL, NULL);", |
|
322 |
"INSERT INTO chart VALUES (72, '4320', 'Erl?se Beratung', 'A', 'I', 'AR_amount:IC_sale:IC_income', '', 3, 51, 1, 1, 2, false, '2006-01-28 18:22:52.533226', '2006-02-04 23:05:45.241847', NULL, NULL);", |
|
323 |
"INSERT INTO chart VALUES (73, '4330', 'Erl?se Programmierung', 'A', 'I', 'AR_amount:IC_sale:IC_income', '', 3, 51, 1, 1, 1, false, '2006-01-28 18:22:52.536409', '2006-02-04 23:06:03.959353', NULL, NULL);", |
|
324 |
"INSERT INTO chart VALUES (69, '4030', 'Erl?se - Softwareverkauf', 'A', 'I', 'AR_amount:IC_sale', '', 2, 86, 1, 1, 1, false, '2006-01-28 18:22:52.521819', '2006-02-02 10:06:58.91888', NULL, NULL);", |
|
325 |
"INSERT INTO chart VALUES (70, '4040', 'Erl?se - Ersatzteilverkauf', 'A', 'I', 'AR_amount:IC_sale', '', 3, 51, 1, 1, 1, false, '2006-01-28 18:22:52.524987', '2006-02-02 10:07:34.327738', NULL, NULL);", |
|
326 |
"INSERT INTO chart VALUES (57, '3310', 'Verbindlichkeiten aus Lieferungen & Leistungen', 'A', 'L', 'AP', '', 0, NULL, NULL, 1, NULL, false, '2006-01-28 18:22:52.477485', '2006-02-02 18:12:21.634302', NULL, NULL);", |
|
327 |
"INSERT INTO chart VALUES (51, '2810', 'Schecks', 'A', 'A', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.455807', NULL, NULL, NULL);", |
|
328 |
"INSERT INTO chart VALUES (55, '3120', 'Kredite von Eigent?mern', 'A', 'L', '', '', 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.471098', NULL, NULL, NULL);", |
|
329 |
"INSERT INTO chart VALUES (49, '2710', 'Kassa', 'A', 'A', 'AR_paid', '', 0, NULL, NULL, 1, NULL, false, '2006-01-28 18:22:52.449148', '2006-02-04 14:59:14.410329', NULL, NULL);", |
|
330 |
"INSERT INTO chart VALUES (77, '5020', 'Warengruppe 0', 'A', 'E', 'IC:IC_cogs:AP_amount', '', 7, NULL, NULL, NULL, 8, false, '2006-01-28 18:22:52.550381', '2006-02-08 20:30:42.871241', NULL, NULL);", |
|
331 |
"INSERT INTO chart VALUES (68, '4020', 'Erl?se - Hardwareverkauf', 'A', 'I', 'AR_amount:IC_sale', '', 2, 86, 1, 1, 1, false, '2006-01-28 18:22:52.51796', '2006-02-04 23:05:12.810823', NULL, NULL);", |
|
332 |
"INSERT INTO chart VALUES (40, '2010', 'Forderungen Lieferung & Leistung', 'A', 'A', 'AR', '200-207', NULL, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.41697', NULL, NULL, NULL);", |
|
333 |
"INSERT INTO chart VALUES (65, '2510', 'Vorsteuer 10%', 'A', 'E', 'AR_tax:AP_tax:IC_taxpart:IC_taxservice', NULL, 0, 66, NULL, NULL, NULL, false, '2006-01-28 18:22:52.505337', '2006-02-02 17:38:40.373624', NULL, NULL);", |
|
334 |
"INSERT INTO chart VALUES (64, '2512', 'Vorsteuer 12%', 'A', 'E', 'AR_tax:AP_tax:IC_taxpart:IC_taxservice', NULL, 0, 66, NULL, NULL, NULL, false, '2006-01-28 18:22:52.502023', '2006-02-08 20:14:19.543049', NULL, NULL);", |
|
335 |
"INSERT INTO chart VALUES (66, '2520', 'Vorsteuer 20%', 'A', 'E', 'AR_tax:AP_tax:IC_taxpart:IC_taxservice', NULL, 0, 66, NULL, NULL, NULL, false, '2006-01-28 18:22:52.510324', '2006-02-02 18:07:25.987706', NULL, NULL);", |
|
336 |
"INSERT INTO chart VALUES (61, '3501', 'Mehrwertsteuer 0%', 'A', 'I', 'AR_tax:AP_tax:IC_taxpart:IC_taxservice', NULL, 0, NULL, NULL, NULL, NULL, false, '2006-01-28 18:22:52.491959', '2006-02-08 20:17:24.589389', NULL, NULL);", |
|
337 |
"INSERT INTO chart VALUES (62, '3510', 'Mehrwertsteuer 10%', 'A', 'I', 'AR_tax:AP_tax:IC_taxpart:IC_taxservice', NULL, 0, 861, NULL, NULL, NULL, false, '2006-01-28 18:22:52.495255', '2006-02-08 20:16:06.81373', NULL, NULL);", |
|
338 |
"INSERT INTO chart VALUES (63, '3520', 'Mehrwertsteuer 20%', 'A', 'I', 'AR_tax:AP_tax:IC_taxpart:IC_taxservice', NULL, 0, 511, NULL, NULL, NULL, false, '2006-01-28 18:22:52.498543', '2006-02-08 20:16:30.014075', NULL, NULL);", |
|
339 |
"insert into chart (accno,description,charttype,gifi_accno,category,link) values ('0400','MASCHINEN','H','04-05','A','');", |
|
340 |
"insert into chart (accno,description,charttype,gifi_accno,category,link) values ('7411','Lizenzen','A','748-749','E','AP_amount');", |
|
341 |
"insert into chart (accno,description,charttype,gifi_accno,category,link) values ('7631','Internetkosten','A','738-739','E','AP_amount:IC_expense');", |
|
342 |
"insert into chart (accno,description,charttype,gifi_accno,category,link) values ('7632','Reise- und Repr?sentationsaufwand','A','734-735','E','');", |
|
343 |
"insert into chart (accno,description,charttype,gifi_accno,category,link) values ('7634','Registrierungsgeb?hren','A','748-749','E','AP_amount');", |
|
344 |
"insert into chart (accno,description,charttype,gifi_accno,category,link) values ('8020','Bankzinsen und Geb?hren','A','80-83','E','');", |
|
345 |
|
|
346 |
|
|
347 |
); |
|
348 |
|
|
349 |
for my $statement ( 0 .. $#copy_statements ) { |
|
350 |
my $query = $iconv->convert($copy_statements[$statement]); |
|
351 |
#print $query . "<br />"; # Diagnose only! |
|
352 |
do_query($query, 0); |
|
353 |
} |
|
354 |
|
|
355 |
return 1; |
|
356 |
} |
|
357 |
sub do_insert_tax { |
|
358 |
|
|
359 |
my @copy_statements = ( |
|
360 |
"INSERT INTO tax (chart_id, taxnumber, taxkey, taxdescription, itime, mtime, rate, id) VALUES (65, '2510', 7, 'Vorsteuer 10%', '2006-01-30 11:08:23.332857', '2006-02-08 20:28:09.63567', 0.10000, 173);", |
|
361 |
"INSERT INTO tax (chart_id, taxnumber, taxkey, taxdescription, itime, mtime, rate, id) VALUES (64, '2512', 8, 'Vorsteuer 12%', '2006-02-02 17:39:18.535036', '2006-02-08 20:28:21.463869', 0.12000, 174);", |
|
362 |
"INSERT INTO tax (chart_id, taxnumber, taxkey, taxdescription, itime, mtime, rate, id) VALUES (66, '2520', 9, 'Vorsteuer 20%', '2006-01-30 11:08:23.332857', '2006-02-08 19:57:47.648373', 0.20000, 175);", |
|
363 |
"INSERT INTO tax (chart_id, taxnumber, taxkey, taxdescription, itime, mtime, rate, id) VALUES (61, '3501', 1, 'Mehrwertsteuerfrei', '2006-01-30 11:08:23.332857', '2006-02-08 20:23:14.242534', 0.00000, 176);", |
|
364 |
"INSERT INTO tax (chart_id, taxnumber, taxkey, taxdescription, itime, mtime, rate, id) VALUES (62, '3510', 2, 'Mehrwertsteuer 10%', '2006-01-30 11:08:23.332857', '2006-02-08 20:23:32.978436', 0.10000, 177);", |
|
365 |
"INSERT INTO tax (chart_id, taxnumber, taxkey, taxdescription, itime, mtime, rate, id) VALUES (63, '3520', 3, 'Mehrwertsteuer 20%', '2006-01-30 11:08:23.332857', '2006-02-08 20:23:47.331584', 0.20000, 178);", |
|
366 |
"INSERT INTO tax (chart_id, taxnumber, taxkey, taxdescription, itime, mtime, rate, id) VALUES (NULL, NULL, 10, 'Im anderen EG-Staat steuerpfl. Lieferung', '2006-01-30 11:08:23.332857', '2006-02-08 12:45:36.44088', NULL, 171);", |
|
367 |
"INSERT INTO tax (chart_id, taxnumber, taxkey, taxdescription, itime, mtime, rate, id) VALUES (NULL, NULL, 11, 'Steuerfreie EG-Lief. an Abn. mit UStIdNr', '2006-01-30 11:08:23.332857', '2006-02-08 12:45:36.44088', NULL, 172);", |
|
368 |
"INSERT INTO tax (chart_id, taxnumber, taxkey, taxdescription, itime, mtime, rate, id) VALUES (NULL, NULL, 0, 'Keine Steuer', '2006-01-30 11:08:23.332857', '2006-02-08 12:45:36.44088', 0.00000, 0);", |
|
369 |
|
|
370 |
); |
|
371 |
|
|
372 |
for my $statement ( 0 .. $#copy_statements ) { |
|
373 |
my $query = $iconv->convert($copy_statements[$statement]); |
|
374 |
#print $query . "<br />"; # Diagnose only! |
|
375 |
do_query($query, 0); |
|
376 |
} |
|
377 |
return 1; |
|
378 |
} |
|
379 |
|
|
380 |
sub do_insert_taxkeys { |
|
381 |
|
|
382 |
my @copy_statements = ( |
|
383 |
"INSERT INTO taxkeys VALUES (230, 69, 177, 2, NULL, '1970-01-01');", |
|
384 |
"INSERT INTO taxkeys VALUES (231, 72, 178, 3, NULL, '1970-01-01');", |
|
385 |
"INSERT INTO taxkeys VALUES (232, 73, 178, 3, NULL, '1970-01-01');", |
|
386 |
"INSERT INTO taxkeys VALUES (233, 70, 178, 3, NULL, '1970-01-01');", |
|
387 |
"INSERT INTO taxkeys VALUES (234, 78, 173, 7, NULL, '1970-01-01');", |
|
388 |
"INSERT INTO taxkeys VALUES (235, 77, 173, 7, NULL, '1970-01-01');", |
|
389 |
"INSERT INTO taxkeys VALUES (236, 105, 175, 9, NULL, '1970-01-01');", |
|
390 |
"INSERT INTO taxkeys VALUES (237, 163, 175, 9, NULL, '1970-01-01');", |
|
391 |
"INSERT INTO taxkeys VALUES (238, 99, 175, 9, NULL, '1970-01-01');", |
|
392 |
"INSERT INTO taxkeys VALUES (239, 152, 175, 9, NULL, '1970-01-01');", |
|
393 |
"INSERT INTO taxkeys VALUES (240, 104, 175, 9, NULL, '1970-01-01');", |
|
394 |
"INSERT INTO taxkeys VALUES (241, 108, 175, 9, NULL, '1970-01-01');", |
|
395 |
"INSERT INTO taxkeys VALUES (242, 79, 175, 9, NULL, '1970-01-01');", |
|
396 |
"INSERT INTO taxkeys VALUES (243, 155, 175, 9, NULL, '1970-01-01');", |
|
397 |
"INSERT INTO taxkeys VALUES (244, 150, 175, 9, NULL, '1970-01-01');", |
|
398 |
"INSERT INTO taxkeys VALUES (245, 148, 175, 9, NULL, '1970-01-01');", |
|
399 |
"INSERT INTO taxkeys VALUES (246, 149, 175, 9, NULL, '1970-01-01');", |
|
400 |
"INSERT INTO taxkeys VALUES (247, 158, 175, 9, NULL, '1970-01-01');", |
|
401 |
"INSERT INTO taxkeys VALUES (248, 156, 175, 9, NULL, '1970-01-01');", |
|
402 |
"INSERT INTO taxkeys VALUES (249, 157, 175, 9, NULL, '1970-01-01');", |
|
403 |
"INSERT INTO taxkeys VALUES (250, 154, 175, 9, NULL, '1970-01-01');", |
|
404 |
"INSERT INTO taxkeys VALUES (251, 151, 175, 9, NULL, '1970-01-01');", |
|
405 |
"INSERT INTO taxkeys VALUES (252, 81, 175, 9, NULL, '1970-01-01');", |
|
406 |
"INSERT INTO taxkeys VALUES (253, 97, 175, 9, NULL, '1970-01-01');", |
|
407 |
"INSERT INTO taxkeys VALUES (258, 0, 171, 10, NULL, '1970-01-01');", |
|
408 |
"INSERT INTO taxkeys VALUES (259, 0, 172, 11, NULL, '1970-01-01');", |
|
409 |
"INSERT INTO taxkeys VALUES (260, 0, 173, 7, NULL, '1970-01-01');", |
|
410 |
"INSERT INTO taxkeys VALUES (261, 0, 174, 8, NULL, '1970-01-01');", |
|
411 |
"INSERT INTO taxkeys VALUES (262, 0, 175, 9, NULL, '1970-01-01');", |
|
412 |
"INSERT INTO taxkeys VALUES (263, 0, 176, 1, NULL, '1970-01-01');", |
|
413 |
"INSERT INTO taxkeys VALUES (264, 0, 177, 2, NULL, '1970-01-01');", |
|
414 |
"INSERT INTO taxkeys VALUES (265, 0, 178, 3, NULL, '1970-01-01');", |
|
415 |
"INSERT INTO taxkeys VALUES (266, 68, 177, 2, NULL, '1970-01-01');", |
|
416 |
"INSERT INTO taxkeys VALUES (179, 95, 0, 0, NULL, '1970-01-01');", |
|
417 |
"INSERT INTO taxkeys VALUES (180, 94, 0, 0, NULL, '1970-01-01');", |
|
418 |
"INSERT INTO taxkeys VALUES (181, 159, 0, 0, NULL, '1970-01-01');", |
|
419 |
"INSERT INTO taxkeys VALUES (182, 113, 0, 0, NULL, '1970-01-01');", |
|
420 |
"INSERT INTO taxkeys VALUES (183, 161, 0, 0, NULL, '1970-01-01');", |
|
421 |
"INSERT INTO taxkeys VALUES (184, 102, 0, 0, NULL, '1970-01-01');", |
|
422 |
"INSERT INTO taxkeys VALUES (185, 112, 0, 0, NULL, '1970-01-01');", |
|
423 |
"INSERT INTO taxkeys VALUES (186, 114, 0, 0, NULL, '1970-01-01');", |
|
424 |
"INSERT INTO taxkeys VALUES (187, 33, 0, 0, NULL, '1970-01-01');", |
|
425 |
"INSERT INTO taxkeys VALUES (188, 71, 0, 0, NULL, '1970-01-01');", |
|
426 |
"INSERT INTO taxkeys VALUES (189, 9, 0, 0, NULL, '1970-01-01');", |
|
427 |
"INSERT INTO taxkeys VALUES (190, 45, 0, 0, NULL, '1970-01-01');", |
|
428 |
"INSERT INTO taxkeys VALUES (191, 67, 0, 0, NULL, '1970-01-01');", |
|
429 |
"INSERT INTO taxkeys VALUES (192, 75, 0, 0, NULL, '1970-01-01');", |
|
430 |
"INSERT INTO taxkeys VALUES (193, 131, 0, 0, NULL, '1970-01-01');", |
|
431 |
"INSERT INTO taxkeys VALUES (194, 144, 0, 0, NULL, '1970-01-01');", |
|
432 |
"INSERT INTO taxkeys VALUES (195, 118, 0, 0, NULL, '1970-01-01');", |
|
433 |
"INSERT INTO taxkeys VALUES (196, 147, 0, 0, NULL, '1970-01-01');", |
|
434 |
"INSERT INTO taxkeys VALUES (197, 76, 0, 0, NULL, '1970-01-01');", |
|
435 |
"INSERT INTO taxkeys VALUES (198, 160, 0, 0, NULL, '1970-01-01');", |
|
436 |
"INSERT INTO taxkeys VALUES (199, 80, 0, 0, NULL, '1970-01-01');", |
|
437 |
"INSERT INTO taxkeys VALUES (200, 109, 0, 0, NULL, '1970-01-01');", |
|
438 |
"INSERT INTO taxkeys VALUES (201, 101, 0, 0, NULL, '1970-01-01');", |
|
439 |
"INSERT INTO taxkeys VALUES (202, 107, 0, 0, NULL, '1970-01-01');", |
|
440 |
"INSERT INTO taxkeys VALUES (203, 106, 0, 0, NULL, '1970-01-01');", |
|
441 |
"INSERT INTO taxkeys VALUES (204, 110, 0, 0, NULL, '1970-01-01');", |
|
442 |
"INSERT INTO taxkeys VALUES (205, 111, 0, 0, NULL, '1970-01-01');", |
|
443 |
"INSERT INTO taxkeys VALUES (206, 153, 0, 0, NULL, '1970-01-01');", |
|
444 |
"INSERT INTO taxkeys VALUES (207, 115, 0, 0, NULL, '1970-01-01');", |
|
445 |
"INSERT INTO taxkeys VALUES (208, 117, 0, 0, NULL, '1970-01-01');", |
|
446 |
"INSERT INTO taxkeys VALUES (209, 132, 0, 0, NULL, '1970-01-01');", |
|
447 |
"INSERT INTO taxkeys VALUES (210, 116, 0, 0, NULL, '1970-01-01');", |
|
448 |
"INSERT INTO taxkeys VALUES (211, 119, 0, 0, NULL, '1970-01-01');", |
|
449 |
"INSERT INTO taxkeys VALUES (212, 32, 0, 0, NULL, '1970-01-01');", |
|
450 |
"INSERT INTO taxkeys VALUES (213, 52, 0, 0, NULL, '1970-01-01');", |
|
451 |
"INSERT INTO taxkeys VALUES (214, 59, 0, 0, NULL, '1970-01-01');", |
|
452 |
"INSERT INTO taxkeys VALUES (215, 60, 0, 0, NULL, '1970-01-01');", |
|
453 |
"INSERT INTO taxkeys VALUES (217, 146, 0, 0, NULL, '1970-01-01');", |
|
454 |
"INSERT INTO taxkeys VALUES (223, 130, 0, 0, NULL, '1970-01-01');", |
|
455 |
"INSERT INTO taxkeys VALUES (224, 164, 0, 0, NULL, '1970-01-01');", |
|
456 |
"INSERT INTO taxkeys VALUES (225, 57, 0, 0, NULL, '1970-01-01');", |
|
457 |
"INSERT INTO taxkeys VALUES (226, 51, 0, 0, NULL, '1970-01-01');", |
|
458 |
"INSERT INTO taxkeys VALUES (227, 55, 0, 0, NULL, '1970-01-01');", |
|
459 |
"INSERT INTO taxkeys VALUES (228, 49, 0, 0, NULL, '1970-01-01');", |
|
460 |
"INSERT INTO taxkeys VALUES (257, 0, 0, 0, NULL, '1970-01-01');", |
|
461 |
"INSERT INTO taxkeys VALUES (267, 40, 0, 0, NULL, '1970-01-01');", |
|
462 |
"INSERT INTO taxkeys VALUES (279, 65, 0, 0, NULL, '1970-01-01');", |
|
463 |
"INSERT INTO taxkeys VALUES (280, 64, 0, 0, NULL, '1970-01-01');", |
|
464 |
"INSERT INTO taxkeys VALUES (281, 66, 0, 0, NULL, '1970-01-01');", |
|
465 |
"INSERT INTO taxkeys VALUES (282, 61, 0, 0, NULL, '1970-01-01');", |
|
466 |
"INSERT INTO taxkeys VALUES (283, 62, 0, 0, NULL, '1970-01-01');", |
|
467 |
"INSERT INTO taxkeys VALUES (284, 63, 0, 0, NULL, '1970-01-01');", |
|
468 |
|
|
469 |
"ALTER TABLE taxkeys DROP COLUMN pos_ustva;", |
|
470 |
"ALTER TABLE taxkeys ADD COLUMN pos_ustva text;", |
|
471 |
"INSERT INTO taxkeys (chart_id, tax_id, taxkey_id, pos_ustva, startdate) |
|
472 |
SELECT id, 0, 0, NULL, '01.01.1970' FROM chart WHERE charttype='A';", |
|
473 |
"UPDATE chart SET taxkey_id = 0 WHERE taxkey_id ISNULL;", |
|
474 |
"UPDATE taxkeys SET pos_ustva='000' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (4010, 4015, 4020, 4025, 4030, 4035, 4040, 4045, 4050, 4310, 4315, 4320, 4322, 4325, 4330, 4335, 4340, 4345, 4350, 4450, 4029, 4329));", |
|
475 |
"UPDATE taxkeys SET pos_ustva='011' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (4029, 4329));", |
|
476 |
"UPDATE taxkeys SET pos_ustva='017' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (4015, 4025, 4035, 4045, 4315, 4325, 4335, 4345));", |
|
477 |
"UPDATE taxkeys SET pos_ustva='022' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (4040, 4045));", |
|
478 |
"UPDATE taxkeys SET pos_ustva='122' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (3520));", |
|
479 |
"UPDATE taxkeys SET pos_ustva='029' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (4010, 4015));", |
|
480 |
"UPDATE taxkeys SET pos_ustva='129' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (3510));", |
|
481 |
"UPDATE taxkeys SET pos_ustva='025' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (4012));", |
|
482 |
"UPDATE taxkeys SET pos_ustva='125' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (3512));", |
|
483 |
"UPDATE taxkeys SET pos_ustva='035' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (4016));", |
|
484 |
"UPDATE taxkeys SET pos_ustva='135' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (3516));", |
|
485 |
"UPDATE taxkeys SET pos_ustva='070' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (5015, 5025));", |
|
486 |
"UPDATE taxkeys SET pos_ustva='072' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (5025));", |
|
487 |
"UPDATE taxkeys SET pos_ustva='172' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (3502));", |
|
488 |
"UPDATE taxkeys SET pos_ustva='073' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (5015));", |
|
489 |
"UPDATE taxkeys SET pos_ustva='173' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (3501));", |
|
490 |
"UPDATE taxkeys SET pos_ustva='060' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (2510, 2512, 2516, 2519, 2520));", |
|
491 |
"UPDATE taxkeys SET pos_ustva='065' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (2515));", |
|
492 |
); |
|
493 |
|
|
494 |
for my $statement ( 0 .. $#copy_statements ) { |
|
495 |
my $query = $iconv->convert($copy_statements[$statement]); |
|
496 |
#print $query . "<br />"; # Diagnose only! |
|
497 |
do_query($query, 0); |
|
498 |
} |
|
499 |
|
|
500 |
return 1; |
|
501 |
|
|
502 |
} |
|
503 |
|
|
504 |
sub do_insert_buchungsgruppen { |
|
505 |
|
|
506 |
my @copy_statements = ( |
|
507 |
"INSERT INTO buchungsgruppen VALUES (256, 'Erl?se aus Dienstleistungen', 23, 72, 99, 72, 77, 72, 77, 72, 77, 3);", |
|
508 |
"INSERT INTO buchungsgruppen VALUES (254, 'Erl?se aus Warenlieferungen', 23, 68, 77, 72, 77, 72, 77, 72, 77, 2);", |
|
509 |
"INSERT INTO buchungsgruppen VALUES (255, 'Erl?se aus Dienstleistungen', 23, 72, 77, 72, 77, 72, 77, 72, 77, 1);", |
|
510 |
); |
|
511 |
|
|
512 |
for my $statement ( 0 .. $#copy_statements ) { |
|
513 |
my $query = $iconv->convert($copy_statements[$statement]); |
|
514 |
#print $query . "<br />"; # Diagnose only! |
|
515 |
do_query($query, 0); |
|
516 |
} |
|
517 |
|
|
518 |
return 1; |
|
519 |
} |
|
520 |
|
|
521 |
|
|
522 |
|
Auch abrufbar als: Unified diff
Anpassung für oesterreichischen Kontenrahmen. Verhält sich neutral ggue. anderen Kontenrahmen ausser 'Austria'. Nur unbebuchte Kontenrahmen werden geupdated.