]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/OE.pm
Bei verschachtelten Schleifen in der inneren Schleife eine andere Schleifenvariable...
[kivitendo-erp.git] / SL / OE.pm
index 3afd46262166ea89cee6f18ed452c2e7b988ebfd..95d60c36f68b85b6c42da5086c9bb7c0c55a18d2 100644 (file)
--- a/SL/OE.pm
+++ b/SL/OE.pm
@@ -1075,9 +1075,9 @@ sub order_details {
       }
 
       if ($taxamount != 0) {
-        foreach my $item (split / /, $form->{"taxaccounts_$i"}) {
-          $taxaccounts{$item} += $taxamount * $form->{"${item}_rate"} / $taxrate;
-          $taxbase{$item}     += $taxbase;
+        foreach my $accno (split / /, $form->{"taxaccounts_$i"}) {
+          $taxaccounts{$accno} += $taxamount * $form->{"${accno}_rate"} / $taxrate;
+          $taxbase{$accno}     += $taxbase;
         }
       }