From dad628a3c28d66caf59d23c3c7a8949e39bff81c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 20 Feb 2007 16:51:48 +0000 Subject: [PATCH] =?utf8?q?Wenn=20bei=20Rechnungen=20bei=20einer=20Zeile=20?= =?utf8?q?kein=20Projekt=20ausgew=C3=A4hlt=20ist,=20dann=20richtigen=20Wer?= =?utf8?q?t=20f=C3=BCr=20project=5Fid=20im=20Query=20benutzen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IR.pm | 2 +- SL/IS.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/IR.pm b/SL/IR.pm index 597067283..3bad7ce05 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -383,7 +383,7 @@ sub post_invoice { VALUES ($form->{id}, $form->{"id_$i"}, '$form->{"description_$i"}', | . ($form->{"qty_$i"} * -1) . qq|, | . ($baseqty * -1) . qq|, $form->{"sellprice_$i"}, $fxsellprice, $allocated, - '$form->{"unit_$i"}', $deliverydate, | . conv_i($form->{"project_id_$i"}) . qq|, + '$form->{"unit_$i"}', $deliverydate, | . conv_i($form->{"project_id_$i"}, 'NULL') . qq|, '$form->{"serialnumber_$i"}')|; $dbh->do($query) || $form->dberror($query); } diff --git a/SL/IS.pm b/SL/IS.pm index aa8ded951..18c615fcf 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -741,7 +741,7 @@ sub post_invoice { '$form->{"description_$i"}', '$form->{"longdescription_$i"}', $form->{"qty_$i"}, $form->{"sellprice_$i"}, $fxsellprice, $form->{"discount_$i"}, $allocated, 'f', - '$form->{"unit_$i"}', $deliverydate, | . conv_i($form->{"project_id_$i"}) . qq|, + '$form->{"unit_$i"}', $deliverydate, | . conv_i($form->{"project_id_$i"}, 'NULL') . qq|, '$form->{"serialnumber_$i"}', '$pricegroup_id', '$form->{"ordnumber_$i"}', '$form->{"transdate_$i"}', '$form->{"cusordnumber_$i"}', $baseqty, '$subtotal')|; $dbh->do($query) || $form->dberror($query); -- 2.20.1