]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/AM.pm
Speichern von Konten ein wenig debugged
[kivitendo-erp.git] / SL / AM.pm
index 3e7834795d5bdb0008c5c83280c029eb5fa859b9..5a68426678ecd098b637d84c3e32e866a6cb4977 100644 (file)
--- a/SL/AM.pm
+++ b/SL/AM.pm
@@ -80,12 +80,12 @@ sub get_account {
 
   # get taxkeys and description
   $query = qq§SELECT id, taxkey,id||'--'||taxkey AS tax, taxdescription
-              FROM tax§;
+              FROM tax ORDER BY taxkey§;
   $sth = $dbh->prepare($query);
   $sth->execute || $form->dberror($query);
-
-  $ref = $sth->fetchrow_hashref(NAME_lc);
-
+  
+  $form->{TAXKEY} = [];
+  
   while (my $ref = $sth->fetchrow_hashref(NAME_lc)) {
     push @{ $form->{TAXKEY} }, $ref;
   }