From b9c7197f7d0f64f10735294e4fedf222fee92186 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Mon, 12 Feb 2007 20:27:47 +0000 Subject: [PATCH] USTVA: Ausgabeformat Winston an 16%/19% angepasst. Winston Kennziffern werden ueber <%foreach Schleife dargestellt --- bin/mozilla/ustva.pl | 27 +++++++++++++++++++-- templates/German-winston.xml | 46 +++--------------------------------- 2 files changed, 28 insertions(+), 45 deletions(-) diff --git a/bin/mozilla/ustva.pl b/bin/mozilla/ustva.pl index 7afd2c175..681492638 100644 --- a/bin/mozilla/ustva.pl +++ b/bin/mozilla/ustva.pl @@ -755,6 +755,9 @@ sub generate_ustva { 41 44 49 43 48 51 86 35 77 76 91 89 97 93 95 94 42 60 45 52 73 84 81 ); + + $form->{id} = []; + $form->{amount} = []; if ( $form->{format} eq 'pdf' or $form->{format} eq 'postscript') { @@ -836,9 +839,29 @@ sub generate_ustva { # Re-set Numberformat $myconfig{numberformat} = $temp_numberformat; - } - elsif ( $form->{format} eq 'elstertaxbird' ) { + # push Kennziffern to <%foreach Array fo easyer + # output in xml format. Thx to Moritz. + my %winston_id_for = ( + # No Winston remap?! + ); + + + foreach my $kennziffer (@category_cent, @category_euro) { + + next if ( $kennziffer =~ m/Z\d\d/); + next if ( $form->{$kennziffer} == 0 ); + + if (defined $winston_id_for{$kennziffer} ) { + push(@{ $form->{id}}, $winston_id_for{$kennziffer}); + } else { + push(@{ $form->{id}}, "$kennziffer"); + } + push(@{ $form->{amount}}, $form->{$kennziffer}); + } + + + } elsif ( $form->{format} eq 'elstertaxbird' ) { # Define serveral filenames $form->{IN} = 'taxbird.txb'; diff --git a/templates/German-winston.xml b/templates/German-winston.xml index 7e6b1ae45..00a3bb721 100644 --- a/templates/German-winston.xml +++ b/templates/German-winston.xml @@ -6,49 +6,9 @@ <%year%> <%period%> - <%if 35%><%35%><%end 35%> - <%if 36%><%36%><%end 36%> - <%if 39%><%39%><%end 39%> - <%if 41%><%41%><%end 41%> - <%if 42%><%42%><%end 42%> - <%if 43%><%43%><%end 43%> - <%if 44%><%44%><%end 44%> - <%if 45%><%45%><%end 45%> - <%if 48%><%48%><%end 48%> - <%if 49%><%49%><%end 49%> - <%if 51%><%51%><%end 51%> - <%if 511%><%511%><%end 511%> - <%if 52%><%52%><%end 52%> - <%if 53%><%53%><%end 53%> - <%if 59%><%59%><%end 59%> - <%if 60%><%60%><%end 60%> - <%if 61%><%61%><%end 61%> - <%if 62%><%62%><%end 62%> - <%if 63%><%63%><%end 63%> - <%if 64%><%64%><%end 64%> - <%if 65%><%65%><%end 65%> - <%if 66%><%66%><%end 66%> - <%if 67%><%67%><%end 67%> - <%if 69%><%69%><%end 69%> - <%if 73%><%73%><%end 73%> - <%if 74%><%74%><%end 74%> - <%if 76%><%76%><%end 76%> - <%if 77%><%77%><%end 77%> - <%if 80%><%80%><%end 80%> - <%if 83%><%83%><%end 83%> - <%if 84%><%84%><%end 84%> - <%if 85%><%85%><%end 85%> - <%if 86%><%86%><%end 86%> - <%if 861%><%861%><%end 861%> - <%if 91%><%91%><%end 91%> - <%if 93%><%93%><%end 93%> - <%if 931%><%931%><%end 931%> - <%if 94%><%94%><%end 94%> - <%if 95%><%95%><%end 95%> - <%if 96%><%96%><%end 96%> - <%if 97%><%97%><%end 97%> - <%if 971%><%971%><%end 971%> - <%if 98%><%98%><%end 98%> +<%foreach id%> + <%amount%> +<%end%> -- 2.20.1