From: Moritz Bunkus Date: Wed, 21 Feb 2007 07:57:37 +0000 (+0000) Subject: Query zum Speichern der Zahlungseingänge bzgl. project_id gefixt. Bugzilla-ID 559. X-Git-Tag: release-2.4.2~37 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8c667be6de60615f1cb2dd8fb9a65e785ee8f412;p=kivitendo-erp.git Query zum Speichern der Zahlungseingänge bzgl. project_id gefixt. Bugzilla-ID 559. --- diff --git a/SL/IS.pm b/SL/IS.pm index 18c615fcf..aa2b087bf 100644 --- 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