From 0ba3b647155cba9b668cbcc7579fd135b3a1a9be Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Fri, 20 Jul 2012 16:06:41 +0200 Subject: [PATCH] Steuer bei Debitorenbuchung gefixed Steuerbetrag ist wieder Text statt Inputfeld Fehler kam durch Commit cf5fe23a0f13baaa7637ac66898945d3e9da42f4 "ar form_header nach template ausgelagert" Wahrscheinlich Fehler durch Automatisierung --- bin/mozilla/ar.pl | 4 ++-- templates/webpages/ar/form_header.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index e69e13cbf..45193ed87 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -336,7 +336,7 @@ sub form_header { for my $i (1 .. $form->{rowcount}) { my $transaction = { amount => $form->{"amount_$i"}, - tax => $form->{"tax$i"}, + tax => $form->{"tax_$i"}, project_id => $form->{"project_id_$i"}, }; @@ -375,7 +375,7 @@ sub form_header { . $cgi->hidden('-name' => "previous_AR_amount_$i", '-default' => $selected_accno_full); - $transaction->{tax} = + $transaction->{taxchart} = NTI($cgi->popup_menu('-name' => "taxchart_$i", '-id' => "taxchart_$i", '-style' => 'width:200px', diff --git a/templates/webpages/ar/form_header.html b/templates/webpages/ar/form_header.html index d48cc610d..e5ba4ab31 100644 --- a/templates/webpages/ar/form_header.html +++ b/templates/webpages/ar/form_header.html @@ -140,8 +140,8 @@ [% row.selectAR_amount %] [% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %] - [% L.input_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_tax(row.tax, 2) | html %] - [% row.tax %] + [% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %] + [% row.taxchart %] [% L.select_tag('project_id_' _ loop.count, L.options_for_select(ALL_PROJECTS, title='projectnumber', default=row.project_id, with_empty=1)) %] [%- END %] -- 2.20.1