From: Udo Spallek
Date: Tue, 20 Dec 2005 16:54:11 +0000 (+0000)
Subject: Diverse USTVA Bugs geloest
X-Git-Tag: release-2.4.0^2~426
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=981b670e29449b7ebffe6c910439a05e6613ec6b;p=kivitendo-erp.git
Diverse USTVA Bugs geloest
Solve Bug: 49: UST wurde berechnet, jetzt ausgelesen, mit Patchen von Andre Schubert THX
Solve Bug: 164: Grundsätzliche Berechnung der UST
Solve Bug: 173: Teilbezahlte Rechnungen bei IST-Versteuerung sollten jetzt klappen, THX Yvonne Einberger
Vorlagen ueberarbeitet, sub ustva und sub get_accounts_ustva in ustva.pm verlegt.
Alle Variablen der USTVA durchgängig nutzbar gemacht.
---
diff --git a/SL/RP.pm b/SL/RP.pm
index f7afbb0b1..6c328326c 100644
--- a/SL/RP.pm
+++ b/SL/RP.pm
@@ -1336,7 +1336,7 @@ sub get_accounts_g {
my @accno;
my $accno;
my $ref;
-
+ #print $query;
my $sth = $dbh->prepare($query);
$sth->execute || $form->dberror($query);
@@ -2506,7 +2506,8 @@ sub ustva {
my $last_period = 0;
my $category = "pos_ustva";
- my @categories_cent = qw(51r 86r 97r 93r 96 66 43 45 53 62 65 67);
+ my @categories_cent = qw(51r 511 86r 861 97r 971 93r 931
+ 96 66 43 45 53 62 65 67);
my @categories_euro = qw(48 51 86 91 97 93 94);
$form->{decimalplaces} *= 1;
@@ -2544,12 +2545,15 @@ sub ustva {
# }
#
# }
-
- $form->{"51r"} = $form->{"51"} * 0.16;
- $form->{"86r"} = $form->{"86"} * 0.07;
- $form->{"97r"} = $form->{"97"} * 0.16;
- $form->{"93r"} = $form->{"93"} * 0.07;
- $form->{"96"} = $form->{"94"} * 0.16;
+
+ #
+ # Berechnung der USTVA Formularfelder
+ #
+ $form->{"51r"} = $form->{"511"};
+ $form->{"86r"} = $form->{"861"};
+ $form->{"97r"} = $form->{"971"};
+ $form->{"93r"} = $form->{"931"};
+ #$form->{"96"} = $form->{"94"} * 0.16;
$form->{"43"} =
$form->{"51r"} + $form->{"86r"} + $form->{"97r"} + $form->{"93r"} +
$form->{"96"};
diff --git a/SL/USTVA.pm b/SL/USTVA.pm
index ff6355635..8b3ca5f96 100644
--- a/SL/USTVA.pm
+++ b/SL/USTVA.pm
@@ -556,4 +556,332 @@ sub process_query {
$main::lxdebug->leave_sub();
}
+
+sub ustva {
+ $main::lxdebug->enter_sub();
+
+ my ($self, $myconfig, $form) = @_;
+
+ # connect to database
+ my $dbh = $form->dbconnect($myconfig);
+
+ my $last_period = 0;
+ my $category = "pos_ustva";
+ my @categories_cent = qw(511 861 36 80 971 931 98 96 53 74
+ 85 65 66 61 62 67 63 64 59 69 39 83
+ Z43 Z45 Z53 Z62 Z65 Z67);
+
+ my @categories_euro = qw(41 44 49 43 48 51 86 35 77 76 91 97 93
+ 95 94 42 60 45 52 73 84);
+
+ $form->{decimalplaces} *= 1;
+
+ foreach $item (@categories_cent) {
+ $form->{"$item"} = 0;
+ }
+ foreach $item (@categories_euro) {
+ $form->{"$item"} = 0;
+ }
+
+
+ &get_accounts_ustva($dbh, $last_period, $form->{fromdate}, $form->{todate},
+ $form, $category);
+
+
+ #
+ # Berechnung der USTVA Formularfelder
+ #
+ $form->{"51r"} = $form->{"511"};
+ $form->{"86r"} = $form->{"861"};
+ $form->{"97r"} = $form->{"971"};
+ $form->{"93r"} = $form->{"931"};
+ $form->{"Z43"} = $form->{"51r"}+ $form->{"86r"} +
+ $form->{"36"} + $form->{"80"} +
+ $form->{"97r"}+ $form->{"93r"} +
+ $form->{"96"} + $form->{"98"};
+ $form->{"Z45"} = $form->{"Z43"};
+ $form->{"Z53"} = $form->{"Z43"};
+ $form->{"Z62"} = $form->{"Z43"}- $form->{"66"} -
+ $form->{"61"} - $form->{"62"} -
+ $form->{"63"} - $form->{"64"} -
+ $form->{"59"};
+ $form->{"Z65"} = $form->{"Z62"}- $form->{"69"};
+ $form->{"83"} = $form->{"Z65"}- $form->{"39"};
+
+ foreach $item (@categories_cent) {
+ $form->{$item} =
+ $form->format_amount($myconfig, $form->round_amount($form->{$item}, 2), 2, '0');
+ }
+
+ foreach $item (@categories_euro) {
+ $form->{$item} =
+ $form->format_amount($myconfig, $form->round_amount($form->{$item}, 0), 0, '0');
+ }
+
+ $dbh->disconnect;
+
+ $main::lxdebug->leave_sub();
+}
+
+sub get_accounts_ustva {
+ $main::lxdebug->enter_sub();
+
+ my ($dbh, $last_period, $fromdate, $todate, $form, $category) = @_;
+
+ my ($null, $department_id) = split /--/, $form->{department};
+
+ my $query;
+ my $dpt_where;
+ my $dpt_join;
+ my $project;
+ my $where = "1 = 1";
+ my $glwhere = "";
+ my $subwhere = "";
+ my $ARwhere = "";
+ my $item;
+
+ if ($fromdate) {
+ if ($form->{method} eq 'cash') {
+ $subwhere .= " AND transdate >= '$fromdate'";
+ $glwhere = " AND ac.transdate >= '$fromdate'";
+ $ARwhere .= " AND acc.transdate >= '$fromdate'";
+ $where .= " AND ac.transdate >= '$fromdate'";
+ }
+ }
+
+ if ($todate) {
+ $where .= " AND ac.transdate <= '$todate'";
+ $ARwhere .= " AND acc.transdate <= '$todate'";
+ $arwhere .= " AND ac.transdate <= '$todate'";
+ $subwhere .= " AND transdate <= '$todate'";
+ }
+
+ if ($department_id) {
+ $dpt_join = qq|
+ JOIN department t ON (a.department_id = t.id)
+ |;
+ $dpt_where = qq|
+ AND t.id = $department_id
+ |;
+ }
+
+ if ($form->{project_id}) {
+ $project = qq|
+ AND ac.project_id = $form->{project_id}
+ |;
+ }
+
+ if ($form->{method} eq 'cash') {
+
+ $query = qq|
+
+ SELECT
+ SUM( ac.amount *
+ -- Bezahlt / Rechnungssumme
+ (
+ SELECT SUM(acc.amount)
+ FROM acc_trans acc
+ INNER JOIN chart c ON (acc.chart_id = c.id AND c.link like '%AR_paid%')
+ WHERE
+ 1=1
+ $ARwhere
+ AND acc.trans_id = ac.trans_id
+ )
+ /
+ (
+ select amount from ar where id = ac.trans_id
+ )
+ ) AS amount,
+ c.pos_ustva
+ FROM acc_trans ac
+ JOIN chart c ON (c.id = ac.chart_id)
+ JOIN ar ON (ar.id = ac.trans_id)
+ where
+ 1=1
+ $arwhere
+ GROUP BY c.pos_ustva
+ UNION
+
+ SELECT sum(ac.amount) AS amount,
+ c.$category
+ FROM acc_trans ac
+ JOIN chart c ON (c.id = ac.chart_id)
+ JOIN ap a ON (a.id = ac.trans_id)
+ $dpt_join
+ WHERE $where
+ $dpt_where
+ AND ac.trans_id IN
+ (
+ SELECT trans_id
+ FROM acc_trans
+ JOIN chart ON (chart_id = id)
+ WHERE link LIKE '%AP_paid%'
+ $subwhere
+ )
+
+ $project
+ GROUP BY c.$category
+
+ UNION
+
+ SELECT sum(ac.amount) AS amount,
+ c.$category
+ FROM acc_trans ac
+ JOIN chart c ON (c.id = ac.chart_id)
+ JOIN gl a ON (a.id = ac.trans_id)
+ $dpt_join
+ WHERE $where
+ $glwhere
+ $dpt_from
+ AND NOT (c.link = 'AR' OR c.link = 'AP')
+ $project
+ GROUP BY c.$category
+
+ |;
+
+ if ($form->{project_id}) {
+
+ $query .= qq|
+
+ UNION
+
+ SELECT SUM(ac.sellprice * ac.qty) AS amount,
+ c.$category
+ FROM invoice ac
+ JOIN ar a ON (a.id = ac.trans_id)
+ JOIN parts p ON (ac.parts_id = p.id)
+ JOIN chart c on (p.income_accno_id = c.id)
+ $dpt_join
+ -- use transdate from subwhere
+ WHERE 1 = 1 $subwhere
+ AND c.category = 'I'
+ $dpt_where
+ AND ac.trans_id IN
+ (
+ SELECT trans_id
+ FROM acc_trans
+ JOIN chart ON (chart_id = id)
+ WHERE link LIKE '%AR_paid%'
+ $subwhere
+ )
+
+ $project
+ GROUP BY c.$category
+
+ UNION
+
+ SELECT SUM(ac.sellprice) AS amount,
+ c.$category
+ FROM invoice ac
+ JOIN ap a ON (a.id = ac.trans_id)
+ JOIN parts p ON (ac.parts_id = p.id)
+ JOIN chart c on (p.expense_accno_id = c.id)
+ $dpt_join
+ WHERE 1 = 1 $subwhere
+ AND c.category = 'E'
+ $dpt_where
+ AND ac.trans_id IN
+ (
+ SELECT trans_id
+ FROM acc_trans
+ JOIN chart ON (chart_id = id)
+ WHERE link LIKE '%AP_paid%'
+ $subwhere
+ )
+
+ $project
+ GROUP BY c.$category
+ |;
+ }
+
+ } else {
+
+ if ($department_id) {
+ $dpt_join = qq|
+ JOIN dpt_trans t ON (t.trans_id = ac.trans_id)
+ |;
+ $dpt_where = qq|
+ AND t.department_id = $department_id
+ |;
+ }
+
+ $query = qq|
+
+ SELECT sum(ac.amount) AS amount,
+ c.$category
+ FROM acc_trans ac
+ JOIN chart c ON (c.id = ac.chart_id)
+ $dpt_join
+ WHERE $where
+ $dpt_where
+ $project
+ GROUP BY c.$category
+ |;
+
+ if ($form->{project_id}) {
+
+ $query .= qq|
+
+ UNION
+
+ SELECT SUM(ac.sellprice * ac.qty) AS amount,
+ c.$category
+ FROM invoice ac
+ JOIN ar a ON (a.id = ac.trans_id)
+ JOIN parts p ON (ac.parts_id = p.id)
+ JOIN chart c on (p.income_accno_id = c.id)
+ $dpt_join
+ -- use transdate from subwhere
+ WHERE 1 = 1 $subwhere
+ AND c.category = 'I'
+ $dpt_where
+ $project
+ GROUP BY c.$category
+
+ UNION
+
+ SELECT SUM(ac.sellprice * ac.qty) * -1 AS amount,
+ c.$category
+ FROM invoice ac
+ JOIN ap a ON (a.id = ac.trans_id)
+ JOIN parts p ON (ac.parts_id = p.id)
+ JOIN chart c on (p.expense_accno_id = c.id)
+ $dpt_join
+ WHERE 1 = 1 $subwhere
+ AND c.category = 'E'
+ $dpt_where
+ $project
+ GROUP BY c.$category
+ |;
+
+ }
+ }
+
+ my @accno;
+ my $accno;
+ my $ref;
+ #print $query;
+ my $sth = $dbh->prepare($query);
+ $sth->execute || $form->dberror($query);
+
+ while ($ref = $sth->fetchrow_hashref(NAME_lc)) {
+ if ($ref->{amount} < 0) {
+ $ref->{amount} *= -1;
+ }
+ if ($category eq "pos_bwa") {
+ if ($last_period) {
+ $form->{ $ref->{$category} }{kumm} += $ref->{amount};
+ } else {
+ $form->{ $ref->{$category} }{jetzt} += $ref->{amount};
+ }
+ } else {
+ $form->{ $ref->{$category} } += $ref->{amount};
+ }
+ }
+ $sth->finish;
+
+ $main::lxdebug->leave_sub();
+}
+
+
1;
diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl
index ab334edcf..1f94d9e99 100644
--- a/bin/mozilla/am.pl
+++ b/bin/mozilla/am.pl
@@ -111,14 +111,46 @@ sub account_header {
|;
$form->{selectustva} = "
51r |
- |
+ <%511%> |
<%51r%>
|
@@ -254,7 +254,7 @@ werden zur Orientierung auch die aktuellen Werte angezeigt.
86r |
- |
+ <%861%> |
<%86r%> |
@@ -273,7 +273,7 @@ werden zur Orientierung auch die aktuellen Werte angezeigt.
93r |
- |
+ <%931%> |
<%93r%> |
@@ -297,7 +297,7 @@ werden zur Orientierung auch die aktuellen Werte angezeigt.
97r |
- |
+ <%971%> |
<%97r%> |
diff --git a/sql/Germany-DATEV-SKR03EU-chart.sql b/sql/Germany-DATEV-SKR03EU-chart.sql
index edf5dc706..602c2d0fb 100644
--- a/sql/Germany-DATEV-SKR03EU-chart.sql
+++ b/sql/Germany-DATEV-SKR03EU-chart.sql
@@ -1,3 +1,6 @@
+-- created by Yvonne Einberger
+-- contributed by Andre Schubert
+--
INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('0027', 'EDV-Software', 'A', 'A', 'AP_amount', '0027', 9, NULL, NULL, NULL, NULL, FALSE);
INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('0090', 'Geschäftsbauten', 'A', 'A', 'AP_amount', '0090', 9, NULL, NULL, NULL, NULL, FALSE);
INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('0200', 'Techn.Anlagen und Maschinen', 'A', 'A', 'AP_amount', '0200', 9, NULL, NULL, NULL, NULL, FALSE);
@@ -191,8 +194,8 @@ INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, ta
INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('0650', 'Vblk.geg.Kreditinst.- Restlaufzeit grösser als 5 Jahre', 'A', 'A', '', '0650', 0, NULL, NULL, NULL, NULL, FALSE);
INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('4510', 'Kfz-Steuer', 'A', 'E', 'AP_amount', '4510', 0, NULL, 19, NULL, 15, FALSE);
INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('4520', 'Kfz-Versicherungen', 'A', 'E', 'AP_amount', '4520', 0, NULL, 14, NULL, 16, FALSE);
-INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('1771', 'Umsatzsteuer 7%', 'A', 'I', 'AR_tax:IC_taxpart:IC_taxservice:CT_tax', '1771', 0, NULL, NULL, NULL, 5, FALSE);
-INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('1775', 'Umsatzsteuer 16%', 'A', 'I', 'AR_tax:IC_taxpart:IC_taxservice:CT_tax', '1775', 0, NULL, NULL, NULL, 6, FALSE);
+INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('1771', 'Umsatzsteuer 7%', 'A', 'I', 'AR_tax:IC_taxpart:IC_taxservice:CT_tax', '1771', 861, NULL, NULL, NULL, 5, FALSE);
+INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('1775', 'Umsatzsteuer 16%', 'A', 'I', 'AR_tax:IC_taxpart:IC_taxservice:CT_tax', '1775', 511, NULL, NULL, NULL, 6, FALSE);
INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('1767', 'Im anderen EG-Staat steuerpfl. Lieferung', 'A', ' ', '', '1767', 10, NULL, 0, NULL, NULL, FALSE);
INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('0853', 'Satzungsm.Rücklagen 0% Vorbelast.(st.Einlagekto.)', 'A', 'Q', '', '0853', 0, NULL, NULL, NULL, NULL, FALSE);
INSERT INTO chart (accno, description, charttype, category, link, gifi_accno, taxkey_id, pos_ustva, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('1607', 'Vblk.a.LuL ohne Vorsteuer (EÜR)', 'A', 'L', 'AP', '1607', 0, NULL, NULL, NULL, NULL, FALSE);
diff --git a/sql/Pg-upgrade-2.1.1-2.1.2.sql b/sql/Pg-upgrade-2.1.1-2.1.2.sql
index 91016951b..5800d73c7 100644
--- a/sql/Pg-upgrade-2.1.1-2.1.2.sql
+++ b/sql/Pg-upgrade-2.1.1-2.1.2.sql
@@ -235,10 +235,16 @@ ALTER TABLE invoice ADD column pricegroup_id integer;
ALTER TABLE orderitems ADD column pricegroup_id integer;
update defaults set version = '2.1.2', audittrail = 't';
---
--- add fields for ordnumber/transdate/cusordnumber in invoice/orderitems (r690 cleanup)
+-- USTVA Update solve Bug 49 conributed by Andre Schubert
+update chart set pos_ustva='861' where accno='1771';
+update chart set pos_ustva='511' where accno='1775';
+update chart set pos_ustva='511' where pos_ustva='51r';
+update chart set pos_ustva='861' where pos_ustva='86r';
+update chart set pos_ustva='971' where pos_ustva='97r';
+update chart set pos_ustva='931' where pos_ustva='93r';
+-- add fields for ordnumber/transdate/cusordnumber in invoice/orderitems (r690 cleanup)
alter table orderitems add column ordnumber text;
alter table orderitems add column transdate text;
alter table orderitems add column cusordnumber text;
diff --git a/sql/liste.sql b/sql/liste.sql
index ba9285265..1da446b87 100644
--- a/sql/liste.sql
+++ b/sql/liste.sql
@@ -83,7 +83,7 @@ UPDATE chart set taxkey_id=0, pos_eur=31 WHERE accno='4396';
UPDATE chart set taxkey_id=0, pos_eur=31 WHERE accno='4397';
UPDATE chart set taxkey_id=0, pos_eur=17 WHERE accno='4500';
UPDATE chart set taxkey_id=9, pos_bwa=14, pos_eur=17 WHERE accno='4530';
-UPDATE chart set taxkey_id=0, pos_ustva=0, pos_bwa=1 WHERE accno='8100';
+UPDATE chart set taxkey_id=0, pos_ustva=48, pos_bwa=1 WHERE accno='8100';
UPDATE chart set taxkey_id=0, pos_eur=1 WHERE accno='8110';
UPDATE chart set taxkey_id=2, pos_ustva=86, pos_bwa=1, pos_eur=1 WHERE accno='8300';
UPDATE chart set taxkey_id=9, pos_bwa=14, pos_eur=17 WHERE accno='4540';
@@ -141,7 +141,7 @@ UPDATE chart set taxkey_id=9, pos_bwa=20, pos_eur=24 WHERE accno='4969';
UPDATE chart set taxkey_id=0, pos_bwa=20, pos_eur=24 WHERE accno='4970';
UPDATE chart set taxkey_id=9, pos_bwa=20, pos_eur=24 WHERE accno='4980';
UPDATE chart set taxkey_id=9, pos_eur=19 WHERE accno='4985';
-UPDATE chart set taxkey_id=0, pos_ustva=48, pos_bwa=1, pos_eur=1 WHERE accno='8120';
+UPDATE chart set taxkey_id=0, pos_ustva=43, pos_bwa=1, pos_eur=1 WHERE accno='8120';
UPDATE chart set taxkey_id=0, pos_ustva=41, pos_bwa=1, pos_eur=1 WHERE accno='8125';
UPDATE chart set taxkey_id=0, pos_eur=1 WHERE accno='8130';
UPDATE chart set taxkey_id=0, pos_eur=1 WHERE accno='8135';
diff --git a/templates/German-ustva-2004.tex b/templates/German-ustva-2004.tex
index b418f069a..405df9e33 100644
--- a/templates/German-ustva-2004.tex
+++ b/templates/German-ustva-2004.tex
@@ -57,13 +57,14 @@
\multicolumn{2}{p{7.5cm}}{\small{<%email%>}}& & & & &\\[-1mm]
\end{tabular}\\[28.5mm]
\begin{tabular}[b]{p{95mm}p{28mm}p{2.55mm}p{4mm}p{35mm}}
-&&&&\\[42mm]
-\multicolumn{2}{r}{<%51%>} & & \multicolumn{2}{r}{<%51r%>}\\[1.5mm]
-\multicolumn{2}{r}{<%86%>} & & \multicolumn{2}{r}{<%86r%>}\\[46mm]
-\multicolumn{2}{r}{<%97%>} & & \multicolumn{2}{r}{<%97r%>}\\[1.5mm]
-\multicolumn{2}{r}{<%93%>} & & \multicolumn{2}{r}{<%93r%>}\\[7.9mm]
+&&&&\\[22mm]
+\multicolumn{2}{r}{<%48%>} & & \multicolumn{2}{r}{}\\[14.5mm]
+\multicolumn{2}{r}{<%51%>} & & \multicolumn{2}{r}{<%511%>}\\[1.5mm]
+\multicolumn{2}{r}{<%86%>} & & \multicolumn{2}{r}{<%861%>}\\[46mm]
+\multicolumn{2}{r}{<%97%>} & & \multicolumn{2}{r}{<%971%>}\\[1.5mm]
+\multicolumn{2}{r}{<%93%>} & & \multicolumn{2}{r}{<%931%>}\\[7.9mm]
\multicolumn{2}{r}{<%94%>} & & \multicolumn{2}{r}{<%96%>}\\[14mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%43%>}\\
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z43%>}\\
%\multicolumn{2}{||r|}{1000} & & & \\
%\multicolumn{2}{||r|}{1000} & & \multicolumn{2}{r}{100.000.000~~00}\\
%\multicolumn{3}{||r|}{1.000.000.000~~00} & \multicolumn{2}{r}{100.000.000~~00}\\
@@ -74,11 +75,11 @@
\vspace*{-10mm}\hspace{27mm}<%steuernummer%>\\[-2.5mm]
\begin{tabular}[b]{p{95mm}p{28mm}p{2.55mm}p{4mm}p{35mm}}
&&&&\\
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%45%>}\\[46mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%43%>}\\[7.9mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z45%>}\\[46mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z53%>}\\[7.9mm]
\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%66%>}\\[39.8mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%62%>}\\[26.5mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{\textbf{<%67%>}}\\[26mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z62%>}\\[26.5mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{\textbf{<%83%>}}\\[26mm]
\end{tabular}\\[35mm]
<%if FA_steuerberater%>
\vspace{11mm}
diff --git a/templates/German-ustva-2005.tex b/templates/German-ustva-2005.tex
index 824ff1e44..7080cf499 100644
--- a/templates/German-ustva-2005.tex
+++ b/templates/German-ustva-2005.tex
@@ -57,16 +57,14 @@
\multicolumn{2}{p{7.5cm}}{\small{<%email%>}}& & & & &\\[-1mm]
\end{tabular}\\[28.5mm]
\begin{tabular}[b]{p{95mm}p{28mm}p{2.55mm}p{4mm}p{35mm}}
-&&&&\\[35mm]
-\multicolumn{2}{r}{<%51%>} & & \multicolumn{2}{r}{<%51r%>}\\[1.5mm]
-\multicolumn{2}{r}{<%86%>} & & \multicolumn{2}{r}{<%86r%>}\\[39mm]
-\multicolumn{2}{r}{<%97%>} & & \multicolumn{2}{r}{<%97r%>}\\[1.5mm]
-\multicolumn{2}{r}{<%93%>} & & \multicolumn{2}{r}{<%93r%>}\\[7.9mm]
+&&&&\\[22.5mm]
+\multicolumn{2}{r}{<%48%>} & & \multicolumn{2}{r}{}\\[7.5mm]
+\multicolumn{2}{r}{<%51%>} & & \multicolumn{2}{r}{<%511%>}\\[1.5mm]
+\multicolumn{2}{r}{<%86%>} & & \multicolumn{2}{r}{<%861%>}\\[39mm]
+\multicolumn{2}{r}{<%97%>} & & \multicolumn{2}{r}{<%971%>}\\[1.5mm]
+\multicolumn{2}{r}{<%93%>} & & \multicolumn{2}{r}{<%931%>}\\[7.9mm]
\multicolumn{2}{r}{<%94%>} & & \multicolumn{2}{r}{<%96%>}\\[28mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%43%>}\\
-%\multicolumn{2}{||r|}{1000} & & & \\
-%\multicolumn{2}{||r|}{1000} & & \multicolumn{2}{r}{100.000.000~~00}\\
-%\multicolumn{3}{||r|}{1.000.000.000~~00} & \multicolumn{2}{r}{100.000.000~~00}\\
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z43%>}\\
\end{tabular}
\newpage
@@ -74,11 +72,11 @@
\vspace*{-10mm}\hspace{27mm}<%steuernummer%>\\[-2.5mm]
\begin{tabular}[b]{p{95mm}p{28mm}p{2.55mm}p{4mm}p{35mm}}
&&&&\\
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%45%>}\\[46mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%43%>}\\[7.9mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z45%>}\\[46mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z53%>}\\[7.9mm]
\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%66%>}\\[40mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%62%>}\\[26.5mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{\textbf{<%67%>}}\\[26mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z62%>}\\[26.5mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{\textbf{<%83%>}}\\[26mm]
\end{tabular}\\[35mm]
<%if FA_steuerberater%>
\vspace{11mm}
diff --git a/templates/German-ustva-2006.tex b/templates/German-ustva-2006.tex
index 478515c99..5fb8b0e58 100644
--- a/templates/German-ustva-2006.tex
+++ b/templates/German-ustva-2006.tex
@@ -57,16 +57,14 @@
\multicolumn{2}{p{7.5cm}}{\small{<%email%>}}& & & & &\\[-1mm]
\end{tabular}\\[29.5mm]
\begin{tabular}[b]{p{99mm}p{26.5mm}p{4.55mm}p{4mm}p{35mm}}
-&&&&\\[38mm]
-\multicolumn{2}{r}{<%51%>} & & \multicolumn{2}{r}{<%51r%>}\\[1.5mm]
-\multicolumn{2}{r}{<%86%>} & & \multicolumn{2}{r}{<%86r%>}\\[42mm]
-\multicolumn{2}{r}{<%97%>} & & \multicolumn{2}{r}{<%97r%>}\\[1.5mm]
-\multicolumn{2}{r}{<%93%>} & & \multicolumn{2}{r}{<%93r%>}\\[8.5mm]
+&&&&\\[24.5mm]
+\multicolumn{2}{r}{<%48%>} & & \multicolumn{2}{r}{}\\[7.5mm]
+\multicolumn{2}{r}{<%51%>} & & \multicolumn{2}{r}{<%511%>}\\[1.5mm]
+\multicolumn{2}{r}{<%86%>} & & \multicolumn{2}{r}{<%861%>}\\[42mm]
+\multicolumn{2}{r}{<%97%>} & & \multicolumn{2}{r}{<%971%>}\\[1.5mm]
+\multicolumn{2}{r}{<%93%>} & & \multicolumn{2}{r}{<%931%>}\\[8.5mm]
\multicolumn{2}{r}{<%94%>} & & \multicolumn{2}{r}{<%96%>}\\[28mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%43%>}\\
-%\multicolumn{2}{||r|}{1000} & & & \\
-%\multicolumn{2}{||r|}{1000} & & \multicolumn{2}{r}{100.000.000~~00}\\
-%\multicolumn{3}{||r|}{1.000.000.000~~00} & \multicolumn{2}{r}{100.000.000~~00}\\
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z43%>}\\
\end{tabular}
\newpage
@@ -74,11 +72,11 @@
\vspace*{-9.5mm}\hspace{27mm}<%steuernummer%>\\[-2.7mm]
\begin{tabular}[b]{p{99mm}p{25.2mm}p{2.55mm}p{10mm}p{32mm}}
&&&&\\
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%45%>}\\[48mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%43%>}\\[8.9mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z45%>}\\[48mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z53%>}\\[8.9mm]
\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%66%>}\\[42mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%62%>}\\[28mm]
-\multicolumn{2}{r}{} & & \multicolumn{2}{r}{\textbf{<%67%>}}\\[26mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{<%Z62%>}\\[28mm]
+\multicolumn{2}{r}{} & & \multicolumn{2}{r}{\textbf{<%83%>}}\\[26mm]
\end{tabular}\\[35mm]
<%if FA_steuerberater%>
\vspace{11mm}
diff --git a/templates/German-ustva.html b/templates/German-ustva.html
index 93501fc87..bbae885e1 100644
--- a/templates/German-ustva.html
+++ b/templates/German-ustva.html
@@ -80,7 +80,53 @@ automatisch berechnet.
- Steuerpflichtige Umsätze |
+ I. Anmeldung der
+Umsatzsteuer-Vorauszahlung |
+ |
+
+
+ Lieferungen und sonstige Leistungen |
+ |
+
+
+ ??? |
+ (Spalte 41) |
+ <%41%>
|
+ |
+ |
+
+
+ ??? |
+ (Spalte 44) |
+ <%44%>
|
+ |
+ |
+
+
+ ??? |
+ (Spalte 49) |
+ <%49%>
|
+ |
+ |
+
+
+ ??? |
+ (Spalte 43) |
+ <%43%>
|
+ |
+ |
+
+
+ Steuerfreie Umsätze ohne
+Vorsteuerabzug. Umsätze nach § 4 Nr. 8 bis 20 UStG |
+ (Spalte 48) |
+ <%48%>
|
+ |
+ |
+
+
+
+ Steuerpflichtige Umsätze |
|
@@ -88,41 +134,77 @@ automatisch berechnet.
(Spalte 51) |
<%51%>
|
(Spalte 51 rechts) |
- <%51r%> |
+ <%511%> |
zum Steuersatz von 7 v.H. |
(Spalte 86) |
<%86%> |
(Spalte 86 rechts) |
- <%86r%> |
+ <%861%> |
+
+
+ andere Steuersätze |
+ 35 |
+ <%35%> |
+ 36 |
+ <%36%> |
+
+ | |
+
+ ??? |
+ (Spalte 77) |
+ <%77%>
|
+ |
+ |
+
+
+ ??? |
+ 76 |
+ <%76%> |
+ 80 |
+ <%80%> |
-
| |
-
- Steuerpflichtige innergemeinsachftliche Erwerbe |
+ Innergemeinsachftliche Erwerbe |
|
+
+ ??? |
+ (Spalte 91) |
+ <%91%>
|
+ |
+ |
+
+
- zum Steuersatz von 16 v.H. |
+ Steuerpflichtige innergemeinsachftliche Erwerbe
+ zum Steuersatz von 16 v.H. |
(Spalte 97) |
<%97%>
|
(Spalte 97 rechts) |
- <%97r%> |
+ <%971%> |
zum Steuersatz von 7 v.H. |
(Spalte 93) |
<%93%> |
(Spalte 93 rechts) |
- <%93r%> |
+ <%931%> |
+
+ ??? |
+ (Spalte 95) |
+ <%95%> |
+ 98 |
+ <%98%> |
+
+
- | |
- neuer Fahrzeuge von Lieferern
+ | neuer Fahrzeuge von Lieferern
von Lieferanten ohne USt.IdNr.
zum allgemeinen Steuersatz |
(Spalte 94) |
@@ -130,26 +212,78 @@ automatisch berechnet.
(Spalte 96) |
<%96%> |
+ | |
+
+ ??? |
+ 42 |
+ <%42%>
|
+ |
+ |
+
+
+ ??? |
+ 60 |
+ <%60%>
|
+ |
+ |
+
+
+ ??? |
+ 45 |
+ <%45%>
|
+ |
+ |
+
| | |
Übertrag |
(Zeile 43) |
- <%43%> |
+ <%Z43%> |
+
Übertrag |
(Zeile 45) |
- <%45%> |
+ <%Z45%> |
+
+
+
+ ??? |
+ 52 |
+ <%52%> |
+ 53 |
+ <%53%> |
+
+
+ ??? |
+ 73 |
+ <%73%> |
+ 74 |
+ <%74%> |
+
+
+ ??? |
+ 84 |
+ <%84%> |
+ 85 |
+ <%85%> |
+
+
+ ??? |
+ 65 |
+ <%65%> |
+
+
| |
Umsatzsteuer |
(Zeile 53) |
- <%43%> |
+ <%Z53%> |
| |
@@ -165,13 +299,46 @@ automatisch berechnet.
(Spalte 66) |
<%66%> |
-
- | |
+
+ ??? |
+ 61 |
+ <%61%> |
+
+
+ ??? |
+ 62 |
+ <%62%> |
+
+
+ ??? |
+ 67 |
+ <%67%> |
+
+
+ ??? |
+ 63 |
+ <%63%> |
+
+
+ ??? |
+ 64 |
+ <%64%> |
+
+
+ ??? |
+ 59 |
+ <%59%> |
+
Verbleibender Betrag |
(Zeile 62) |
- <%62%> |
+ <%Z62%> |
+
+
+ ??? |
+ 69 |
+ <%69%> |
| |
@@ -179,7 +346,12 @@ automatisch berechnet.
Umsatzsteuer-Vorauszahlung/Überschuss |
(Zeile 65) |
- <%65%> |
+ <%Z65%> |
+
+
+ ??? |
+ 39 |
+ <%39%> |
| |
@@ -187,8 +359,8 @@ automatisch berechnet.
Verbleibende Umsatzsteuer-Vorauszahlung
Verbleibender Überschuss |
- (Zeile 67) |
- <%67%> |
+ 83 |
+ <%83%> |