Recommit von r1009 von skoehler: Nachtrag Bug 323, Benennung korrigiert
[kivitendo-erp.git] / bin / mozilla / cp.pl
index 8d7f659..a80e8e1 100644 (file)
@@ -603,10 +603,7 @@ sub update {
   }
 
   # recalculate
-
-  # Modified from $amount = $form->{amount} by J.Zach to update amount to total
-  # payment amount in Zahlungsausgang
-  $amount = 0;
+  $amount = $form->{amount};
   for $i (1 .. $form->{rowcount}) {
 
     map {
@@ -621,9 +618,7 @@ sub update {
         $form->{"paid_$i"} = $form->{"due_$i"};
       }
 
-      # Modified by J.Zach, see abovev
-      $amount += $form->{"paid_$i"}; 
-
+      $amount -= $form->{"paid_$i"};
     } else {
       $form->{"paid_$i"} = "";
     }
@@ -635,9 +630,6 @@ sub update {
 
   }
 
-  # Line added by J.Zach, see above
-  $form->{amount}=$amount; 
-
   &form_header;
   &list_invoices;
   &form_footer;
@@ -724,10 +716,6 @@ sub print {
   $form->{company} = $myconfig{company};
   $form->{address} = $myconfig{address};
 
-  @a =
-    qw(name invnumber company address text_amount street zipcode city country memo);
-  $form->format_string(@a);
-
   $form->parse_template(\%myconfig, $userspath);
 
   if ($form->{media} ne 'screen') {