From e325dbd23c2a6321fbe838e8f67bb3e443297b64 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 14 May 2009 11:11:46 +0000 Subject: [PATCH] =?utf8?q?Beim=20Aufrufen=20der=20Dialogbuchenmaske=20auto?= =?utf8?q?matisch=20die=20richtigen=20Steuers=C3=A4tze=20f=C3=BCr=20die=20?= =?utf8?q?vorausgew=C3=A4hlten=20Konten=20und=20f=C3=BCr=20neu=20angezeigt?= =?utf8?q?e=20Zeilen=20("Erneuern")=20ausw=C3=A4hlen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Teil des Fixes für Bug 960. --- bin/mozilla/gl.pl | 9 ++++----- .../gl/form_footer_initial_taxkey_selection_de.html | 8 -------- .../gl/form_footer_initial_taxkey_selection_master.html | 8 -------- 3 files changed, 4 insertions(+), 21 deletions(-) delete mode 100644 templates/webpages/gl/form_footer_initial_taxkey_selection_de.html delete mode 100644 templates/webpages/gl/form_footer_initial_taxkey_selection_master.html diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 1307a2796..185e2a587 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -793,7 +793,7 @@ sub display_rows { my $taxchart_init; foreach my $item (@{ $form->{ALL_CHARTS} }) { my $key = $item->{accno} . "--" . $item->{tax_id}; - $taxchart_init = $item->{taxkey_id} unless (@chart_values); + $taxchart_init = $item->{tax_id} unless (@chart_values); push(@chart_values, $key); $chart_labels{$key} = $item->{accno} . "--" . $item->{description}; $charts{$item->{accno}} = $item; @@ -804,7 +804,7 @@ sub display_rows { my %taxcharts = (); foreach my $item (@{ $form->{ALL_TAXCHARTS} }) { my $key = $item->{id} . "--" . $item->{rate}; - $taxchart_init = $key if ($taxchart_init eq $item->{taxkey}); + $taxchart_init = $key if ($taxchart_init == $item->{id}); push(@taxchart_values, $key); $taxchart_labels{$key} = $item->{taxdescription} . " " . $item->{rate} * 100 . ' %'; $taxcharts{$item->{id}} = $item; @@ -839,8 +839,8 @@ sub display_rows { $selected_taxchart = "$item->{id}--$item->{rate}"; } - $selected_accno = '' if ($init); - $selected_taxchart = $taxchart_init unless ($selected_taxchart ne ""); + $selected_accno = '' if ($init); + $selected_taxchart ||= $taxchart_init; $accno = qq|| . NTI($cgi->popup_menu('-name' => "accno_$i", @@ -1295,7 +1295,6 @@ $follow_ups_block print qq| |; - print $form->parse_html_template('gl/form_footer_initial_taxkey_selection'); } print " diff --git a/templates/webpages/gl/form_footer_initial_taxkey_selection_de.html b/templates/webpages/gl/form_footer_initial_taxkey_selection_de.html deleted file mode 100644 index 9b32d2813..000000000 --- a/templates/webpages/gl/form_footer_initial_taxkey_selection_de.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/templates/webpages/gl/form_footer_initial_taxkey_selection_master.html b/templates/webpages/gl/form_footer_initial_taxkey_selection_master.html deleted file mode 100644 index 9b32d2813..000000000 --- a/templates/webpages/gl/form_footer_initial_taxkey_selection_master.html +++ /dev/null @@ -1,8 +0,0 @@ - -- 2.20.1