From: Stephan Köhler Date: Thu, 2 Feb 2006 15:56:08 +0000 (+0000) Subject: Merge von 816-819,828 aus unstable: UStVa Bugfix, Bug 262 & 264 X-Git-Tag: release-2.2.0~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=63a1c75d320045aea95c6bfd2444716d34882a56;p=kivitendo-erp.git Merge von 816-819,828 aus unstable: UStVa Bugfix, Bug 262 & 264 -816 Bug 262 fixed! USTVA UPDATE der Positionen und Verknuepfungen. Die UPDATEs sind relativ vollstaendig und sortiert, so dass eine weitere Pflege einfach ist. taxkey's sind noch nicht integriert, deshalb sind einige updates in liste.aql doppelt gemoppelt, was m.E. unproblematisch ist, gleiches gilt für den Germany-DATEV-SKR03EU-chart.sql -817 Bug 264 fixed. Thanks to Martin Krung. -818 Fixed date problems between database and screen-output, reported by Holger on the devel-ML. -819 Update table tax -828 USTVA: Fixed upgrade Problems for tax table --- diff --git a/bin/mozilla/ustva.pl b/bin/mozilla/ustva.pl index 6fa1ed75e..2151c4ab1 100644 --- a/bin/mozilla/ustva.pl +++ b/bin/mozilla/ustva.pl @@ -29,7 +29,7 @@ require "$form->{path}/arap.pl"; #use strict; #no strict 'refs'; #use diagnostics; -#use warnings FATAL=> 'all'; +#use warnings; # FATAL=> 'all'; #use vars qw($locale $form %myconfig); #our ($myconfig); #use CGI::Carp "fatalsToBrowser"; @@ -76,13 +76,7 @@ sub report { $form->{title} = $locale->text('UStVA'); $form->{kz10} = ''; #Berichtigte Anmeldung? Ja =1 - # $accrual = ($eur) ? "" : "checked"; - # $cash = ($eur) ? "checked" : ""; - my $year = ''; - my $null = ''; - ($null, $null, $null, $null, $null, $year, $null, $null, $null) = - localtime(); - $year += 1900; + my $year = substr($form->datetonum($form->current_date(\%myconfig), \%myconfig),0,4); my $department = ''; local $hide = ''; @@ -233,7 +227,7 @@ sub report { # accounting years if SQL-Ledger Version < 2.4.1 # $year = $form->{year} * 1; - @years = sort { $b <=> $a } (2000 .. ($year+1)); + @years = sort { $b <=> $a } (2003 .. ($year+1)); $form->{all_years} = \@years; } map { $form->{selectaccountingyear} .= qq|