]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/is.pl
Keine globalen Variablen benutzen/überschreiben. Fix für Bugzilla #450.
[kivitendo-erp.git] / bin / mozilla / is.pl
index df3062f818a08930e328db791c7f7b45c2394992..1be623fe895eec8edf864294f12ac292e13baab9 100644 (file)
@@ -261,10 +261,11 @@ sub prepare_invoice {
     #     # get pricegroups for parts
     #     IS->get_pricegroups_for_parts(\%myconfig, \%$form);
 
+    my $i = 0;
+
     foreach $ref (@{ $form->{invoice_details} }) {
       $i++;
 
       map { $form->{"${_}_$i"} = $ref->{$_} } keys %{$ref};
       $form->{"discount_$i"} =
         $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100);