Zahlungsverkehr: Drop-Down-Box für das Konto richtig befüllen.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 24 Apr 2007 14:57:56 +0000 (14:57 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 24 Apr 2007 14:57:56 +0000 (14:57 +0000)
SL/CP.pm

index 56f5795..e0cefd3 100644 (file)
--- a/SL/CP.pm
+++ b/SL/CP.pm
@@ -74,8 +74,7 @@ sub paymentaccounts {
     qq|FROM chart | .
     qq|WHERE link LIKE ? |.
     qq|ORDER BY accno|;
-  my $sth = prepare_execute_query($form, $dbh, $query,
-                                  $form->{ARAP} eq "AR" ? "AR" : "AP" );
+  my $sth = prepare_execute_query($form, $dbh, $query, '%' . $ARAP . '%');
 
   $form->{PR}{ $form->{ARAP} } = ();
   $form->{PR}{"$form->{ARAP}_paid"} = ();