Steuer bei Debitorenbuchung gefixed
authorG. Richardson <information@lx-office-hosting.de>
Fri, 20 Jul 2012 14:06:41 +0000 (16:06 +0200)
committerG. Richardson <information@lx-office-hosting.de>
Fri, 20 Jul 2012 14:06:41 +0000 (16:06 +0200)
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
templates/webpages/ar/form_header.html

index e69e13c..45193ed 100644 (file)
@@ -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',
index d48cc61..e5ba4ab 100644 (file)
         <tr>
           <td>[% row.selectAR_amount %]</td>
           <td>[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %]</td>
-          <td>[% L.input_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_tax(row.tax, 2) | html %]</td>
-          <td>[% row.tax %]</td>
+          <td>[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td>
+          <td>[% row.taxchart %]</td>
           <td>[% L.select_tag('project_id_' _ loop.count, L.options_for_select(ALL_PROJECTS, title='projectnumber', default=row.project_id, with_empty=1)) %]</td>
         </tr>
 [%- END %]