Query zum Speichern der Zahlungseingänge bzgl. project_id gefixt. Bugzilla-ID 559.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 21 Feb 2007 07:57:37 +0000 (07:57 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 21 Feb 2007 07:57:37 +0000 (07:57 +0000)
SL/IS.pm

index 18c615f..aa2b087 100644 (file)
--- a/SL/IS.pm
+++ b/SL/IS.pm
@@ -927,11 +927,11 @@ sub post_invoice {
         $form->{"paid_$i"} *= -1;
   
         $query = qq|INSERT INTO acc_trans (trans_id, chart_id, amount, transdate,
-                    source, memo, ?)
+                    source, memo, project_id)
                     VALUES ($form->{id}, (SELECT c.id FROM chart c
-                                        WHERE c.accno = '$accno', project_id),
+                                        WHERE c.accno = '$accno'),
                     $form->{"paid_$i"}, '$form->{"datepaid_$i"}',
-                    '$form->{"source_$i"}', '$form->{"memo_$i"}')|;
+                    '$form->{"source_$i"}', '$form->{"memo_$i"}', ?)|;
         do_query($form, $dbh, $query, $project_id);
   
         # exchangerate difference