Revert "Zahlungseingang: Offene Rechnungen immer beim Update laden."
authorJan Büren <jan@kivitendo-premium.de>
Wed, 12 Feb 2014 12:19:19 +0000 (13:19 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Wed, 12 Feb 2014 12:19:19 +0000 (13:19 +0100)
fixt #2449
This reverts commit ad1061cccd04a5b37e1b09b58055cad15c2f9761.
@waldemar: Falls doch sinnvoll, bitte nochmal "verbessern"

bin/mozilla/cp.pl

index 8632da9..fb244b6 100644 (file)
@@ -324,13 +324,13 @@ sub update {
     $updated = &check_name($form->{vc});
   };
 
-  if ($new_name_selected || $updated) {
+  if ($new_name_selected || $updated) {
     # get open invoices from ar/ap using $form->{vc} and a.${vc}_id, i.e. customer_id
     CP->get_openinvoices(\%myconfig, \%$form);
     ($newvc) = split /--/, $form->{ $form->{vc} };
     $form->{"old$form->{vc}"} = qq|$newvc--$form->{"$form->{vc}_id"}|;
     $updated = 1;
-  }
+  }
 
   if ($form->{currency} ne $form->{oldcurrency}) {
     $form->{oldcurrency} = $form->{currency};