Kreditorenrechnungen: Beim initialen Aufruf den richtigen Steuerschlüssel auswählen...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 19 Mar 2007 16:10:47 +0000 (16:10 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 19 Mar 2007 16:10:47 +0000 (16:10 +0000)
SL/IR.pm

index 5ea2404..5f33d10 100644 (file)
--- a/SL/IR.pm
+++ b/SL/IR.pm
@@ -1071,7 +1071,7 @@ sub get_vendor {
   if (!$form->{id} && $form->{type} !~ /_(order|quotation)/) {
 
     # setup last accounts used
-    $query = qq|SELECT c.accno, c.description, c.link, c.category
+    $query = qq|SELECT c.id, c.accno, c.description, c.link, c.category
                FROM chart c
                JOIN acc_trans ac ON (ac.chart_id = c.id)
                JOIN ap a ON (a.id = ac.trans_id)