- |.$locale->text('Firma').qq|
+ | . $locale->text('Firma') . qq|
|;
- if ( $form->{company} ne '' ){
+ if ($form->{company} ne '') {
print qq|$form->{company} \n|;
- } else
- {
+ } else {
print qq|
{path}&action=config&level=Programm--Preferences&login=$form->{login}&password=$form->{password}>
- |.$locale->text('Kein Firmenname hinterlegt!').qq|
+ | . $locale->text('Kein Firmenname hinterlegt!') . qq|
|;
}
- #klären, ob $form->{company_street|_address} gesetzt sind
- ###
- if ( $form->{address} ne '' ) {
- my $temp = $form->{address};
- $temp =~ s/\\n/ /;
- print qq|$temp|;
- ($form->{company_street}, $form->{company_city}) = split(" {address} eq '' and ($form->{company_street} ne '' and $form->{company_city} ne '' ) ) {
- print qq|$form->{company_street} \n| if ($form->{company_street} ne '');
- print qq|$form->{company_city}\n| if ($form->{company_city} ne '');
- } elsif ($form->{company_street} eq '' or $form->{company_city} eq '') {
- print qq|
+ # Anpassungen der Variablennamen auf pre 2.1.1 Namen
+ # klären, ob $form->{company_street|_address} gesetzt sind
+ #
+
+ if ($form->{address} ne '') {
+ my $temp = $form->{address};
+ $temp =~ s/\\n/ /;
+ ($form->{co_street}, $form->{co_city}) = split(" ", $temp);
+ }
+
+ if ( $form->{co_street} ne ''
+ and ($form->{co_zip} ne ''
+ or $form->{co_city} ne '') ) {
+ print qq|
+ $form->{co_street}
+ $form->{co_street1}
+ $form->{co_zip} $form->{co_city}|;
+ } else {
+ print qq|
{path}&action=config&level=Programm--Preferences&login=$form->{login}&password=$form->{password}>
- |.$locale->text('Keine Firmenadresse hinterlegt!').qq| \n|;
- }
+ | . $locale->text('Keine Firmenadresse hinterlegt!') . qq|\n|;
+ }
+ $form->{co_email}=$form->{email} unless $form->{co_email};
+ $form->{co_tel}=$form->{tel} unless $form->{co_tel};
+ $form->{co_fax}=$form->{fax} unless $form->{co_fax};
+ $form->{co_url}=$form->{urlx} unless $form->{co_url};
+
print qq|
- |.$locale->text('Tel.: ').qq|
- $form->{tel}
+ | . $locale->text('Tel.: ') . qq|
+ $form->{co_tel}
- |.$locale->text('Fax.: ').qq|
- $form->{fax}
+ | . $locale->text('Fax.: ') . qq|
+ $form->{co_fax}
- $form->{email}
+ $form->{co_email}
- |.$locale->text('Steuernummer: ').qq|
+ | . $locale->text('Steuernummer: ') . qq|
|;
-
- if ($form->{steuernummer} ne ''){
+
+ if ($form->{steuernummer} ne '') {
print qq|$form->{steuernummer}|;
} else {
print qq|
@@ -173,7 +194,7 @@ sub report {
}
print qq|
@@ -181,12 +202,14 @@ sub report {
|;
- if ($form->{FA_steuerberater_name} ne ''){
+ if ($form->{FA_steuerberater_name} ne '') {
print qq|
-
- |.$locale->text('Steuerberater/-in').qq|
+
+ | . $locale->text('Steuerberater/-in') . qq|
$form->{FA_steuerberater_name}
@@ -200,71 +223,77 @@ sub report {
print qq|
- |.$locale->text('Voranmeldezeitraum').qq|
+ | . $locale->text('Voranmeldezeitraum') . qq|
|;
&ustva_vorauswahl();
-
- my @years = ();
- if ( not defined $form->{all_years} ) {
+
+ my @years = ();
+ if (not defined $form->{all_years}) {
+
# accounting years if SQL-Ledger Version < 2.4.1
-# $year = $form->{year} * 1;
- @years = sort {$b <=> $a} (2000..($year));
+ # $year = $form->{year} * 1;
+ @years = sort { $b <=> $a } (2000 .. ($year+1));
$form->{all_years} = \@years;
}
- map { $form->{selectaccountingyear} .= qq|$_\n| } @{ $form->{all_years} };
+ map { $form->{selectaccountingyear} .= qq| $_\n| }
+ @{ $form->{all_years} };
print qq|
-
+
|;
my $key = '';
- foreach $key ( @years ){
+ foreach $key (@years) {
print qq|{year});
print qq| >$key
|;
}
-
-
+
my $voranmeld = $form->{FA_voranmeld};
print qq| |;
my $checked = '';
- $checked = "checked" if ( $form->{kz10} eq '1' );
+ $checked = "checked" if ($form->{kz10} eq '1');
print qq|
-
- |.$locale->text('Berichtigte Anmeldung').qq|
+
+ | . $locale->text('Berichtigte Anmeldung') . qq|
|;
- if ($voranmeld ne ''){
- print qq|
+
+ if ($voranmeld ne '') {
+ print qq|
- |.$locale->text($voranmeld).qq|
+ | . $locale->text($voranmeld) . qq|
|;
- print qq| mit Dauerfristverlängerung| if ( $form->{FA_dauerfrist} eq '1');
- print qq|
+ print qq| mit Dauerfristverlängerung| if ($form->{FA_dauerfrist} eq '1');
+ print qq|
|;
}
- if ($form->{method} ne '' ){
- print qq||.$locale->text('Method').qq|: |;
- print qq||.$locale->text('accrual').qq|| if ($form->{method} eq 'accrual');
- print qq||.$locale->text('cash').qq|| if ($form->{method} eq 'cash');
+ if ($form->{method} ne '') {
+ print qq|| . $locale->text('Method') . qq|: |;
+ print qq|| . $locale->text('accrual') . qq||
+ if ($form->{method} eq 'accrual');
+ print qq|| . $locale->text('cash') . qq|| if ($form->{method} eq 'cash');
}
print qq|
|;
-
- if ($form->{FA_Name} ne ''){
+
+ if ($form->{FA_Name} ne '') {
print qq|
- |.$locale->text('Finanzamt').qq|
+ | . $locale->text('Finanzamt') . qq|
$form->{FA_Name}
|;
-
+
#if ($form->{FA_Ergaenzung_Name ne ''}){
# print qq|
# $form->{FA_Ergaenzung_Name} 
@@ -277,14 +306,19 @@ sub report {
$form->{FA_PLZ} $form->{FA_Ort}
- |.$locale->text('Tel. : ').qq|
+ | . $locale->text('Tel. : ') . qq|
$form->{FA_Telefon}
- |.$locale->text('Fax. : ').qq|
+ | . $locale->text('Fax. : ') . qq|
$form->{FA_Fax}
- {steuernummer}:").qq|&body=|.CGI::escape("Sehr geehrte Damen und Herren,\n\n\nMit freundlichen Grüßen\n\n").CGI::escape($form->{signature}).qq|">
+ {steuernummer}:")
+ . qq|&body=|
+ . CGI::escape(
+ "Sehr geehrte Damen und Herren,\n\n\nMit freundlichen Grüßen\n\n")
+ . CGI::escape($form->{signature}) . qq|">
$form->{FA_Email}
@@ -293,150 +327,144 @@ sub report {
- |.$locale->text('Öffnungszeiten').qq|
+ | . $locale->text('Öffnungszeiten') . qq|
$oeffnungszeiten
|;
-
- my $FA_1= ($form->{FA_BLZ_1} ne '' &&
- $form->{FA_Kontonummer_1} ne '' &&
- $form->{FA_Bankbezeichnung_1} ne '');
- my $FA_2= ($form->{FA_BLZ_2} ne '' &&
- $form->{FA_Kontonummer_2} ne '' &&
- $form->{FA_Bankbezeichnung_oertlich} ne '');
-
- if ( $FA_1 && $FA_2){
- print qq|
+
+ my $FA_1 =
+ ( $form->{FA_BLZ_1} ne ''
+ && $form->{FA_Kontonummer_1} ne ''
+ && $form->{FA_Bankbezeichnung_1} ne '');
+ my $FA_2 =
+ ( $form->{FA_BLZ_2} ne ''
+ && $form->{FA_Kontonummer_2} ne ''
+ && $form->{FA_Bankbezeichnung_oertlich} ne '');
+
+ if ($FA_1 && $FA_2) {
+ print qq|
- |.$locale->text('Bankverbindungen').qq|
+ | . $locale->text('Bankverbindungen') . qq|
$form->{FA_Bankbezeichnung_1}
- |.$locale->text('Konto: ').qq|
+ | . $locale->text('Konto: ') . qq|
$form->{FA_Kontonummer_1}
- |.$locale->text('BLZ: ').qq|
+ | . $locale->text('BLZ: ') . qq|
$form->{FA_BLZ_1}
$form->{FA_Bankbezeichnung_oertlich}
- |.$locale->text('Konto: ').qq|
+ | . $locale->text('Konto: ') . qq|
$form->{FA_Kontonummer_2}
- |.$locale->text('BLZ: ').qq|
+ | . $locale->text('BLZ: ') . qq|
$form->{FA_BLZ_2}
|;
- } elsif ( $FA_1 ) {
- print qq|
+ } elsif ($FA_1) {
+ print qq|
- |.$locale->text('Bankverbindung').qq|
+ | . $locale->text('Bankverbindung') . qq|
$form->{FA_Bankbezeichnung_1}
- |.$locale->text('Konto: ').qq|
+ | . $locale->text('Konto: ') . qq|
$form->{FA_Kontonummer_1}
- |.$locale->text('BLZ: ').qq|
+ | . $locale->text('BLZ: ') . qq|
$form->{FA_BLZ_1}
|;
- } elsif ( $FA_2 ) {
- print qq|
+ } elsif ($FA_2) {
+ print qq|
- |.$locale->text('Bankverbindung').qq|
+ | . $locale->text('Bankverbindung') . qq|
$form->{FA_Bankbezeichnung_oertlich}
- |.$locale->text('Konto: ').qq|
+ | . $locale->text('Konto: ') . qq|
$form->{FA_Kontonummer_2}
- |.$locale->text('BLZ: ').qq|
+ | . $locale->text('BLZ: ') . qq|
$form->{FA_BLZ_2}
- |;
- }
- print qq|
+ |;
+ }
+ print qq|
- |.$locale->text('Ausgabeformat').qq|
+ | . $locale->text('Ausgabeformat') . qq|
|;
-
- &show_options;
- my $ausgabe = '1';
- print qq|
+
+ &show_options;
+ my $ausgabe = '1';
+ print qq|
|;
-
-
-
- # Stichtag der nächsten USTVA berechnen
- #
- # ($stichtag, $tage_bis, $ical) = FA->stichtag($today[dd.mm.yyyy],
- # $FA_dauerfrist[1,0],
- # $FA_voranmeld[month, quarter])
- #$tmpdateform= $myconfig{dateformat};
- # $myconfig{dateformat}= "dd.mm.yyyy";
- # $form->{today} = $form->datetonum($form->current_date(\%myconfig), \%myconfig);
- # ($stichtag, $description, $tage_bis, $ical) = FA::stichtag($form->{today}, $form->{FA_dauerfrist},$form->{FA_voranmeld});
- # $form->{today} = $form->date($stichtag, \%myconfig );
- #$myconfig{dateformat}= $tmpdateform;
-
-
- #print qq|
- #
- #
- #
- #
- # |.$locale->text('Anstehende Voranmeldungen').qq|
- #
- # $stichtag
- # $description
- # $form->{today}
- #
- # |;
-
- } else {
- print qq|
+
+ # Stichtag der nächsten USTVA berechnen
+ #
+ # ($stichtag, $tage_bis, $ical) = FA->stichtag($today[dd.mm.yyyy],
+ # $FA_dauerfrist[1,0],
+ # $FA_voranmeld[month, quarter])
+ #$tmpdateform= $myconfig{dateformat};
+ # $myconfig{dateformat}= "dd.mm.yyyy";
+ # $form->{today} = $form->datetonum($form->current_date(\%myconfig), \%myconfig);
+ # ($stichtag, $description, $tage_bis, $ical) = FA::stichtag($form->{today}, $form->{FA_dauerfrist},$form->{FA_voranmeld});
+ # $form->{today} = $form->date($stichtag, \%myconfig );
+ #$myconfig{dateformat}= $tmpdateform;
+
+ #print qq|
+ #
+ #
+ #
+ #
+ # |.$locale->text('Anstehende Voranmeldungen').qq|
+ #
+ # $stichtag
+ # $description
+ # $form->{today}
+ #
+ # |;
+
+ } else {
+ print qq|
- |.$locale->text('Hinweise').qq|
+ | . $locale->text('Hinweise') . qq|
- Die Ausgabefunktionen sind wegen fehlender Daten deaktiviert.
+ Die Ausgabefunktionen sind wegen unzureichender Voreinstellungen deaktiviert.
Hilfe:
|;
- my $ausgabe='';
- $hide = q|disabled="disabled"|;
- }
-
-
+ my $ausgabe = '';
+ $hide = q|disabled="disabled"|;
+ }
- print qq|
+ print qq|
|;
- #}# end if report = ustva
-
+ #}# end if report = ustva
print qq|