From 33c46114fde417a185bcf6715e9903f08f977235 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 18 Jul 2007 13:48:54 +0000 Subject: [PATCH] =?utf8?q?subtotal=20ist=20eine=20Boolean-Spalte;=20=C3=A4?= =?utf8?q?ltere=20DBI-Versionen=20m=C3=B6gen's=20nicht,=20wenn=20man=20ihn?= =?utf8?q?en=20dort=20Integer=20unterschiebt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IS.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/IS.pm b/SL/IS.pm index 1836a6bfa..ec744df2e 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -686,7 +686,6 @@ sub post_invoice { # get pricegroup_id and save it ($null, my $pricegroup_id) = split(/--/, $form->{"sellprice_pg_$i"}); $pricegroup_id *= 1; - my $subtotal = $form->{"subtotal_$i"} * 1; # save detail record in invoice table $query = @@ -704,7 +703,7 @@ sub post_invoice { $form->{"unit_$i"}, conv_date($form->{"deliverydate_$i"}), conv_i($form->{"project_id_$i"}), $form->{"serialnumber_$i"}, conv_i($pricegroup_id), $form->{"ordnumber_$i"}, conv_date($form->{"transdate_$i"}), - $form->{"cusordnumber_$i"}, $baseqty, $subtotal, + $form->{"cusordnumber_$i"}, $baseqty, $form->{"subtotal_$i"} ? 't' : 'f', $form->{"marge_percent_$i"}, $form->{"marge_absolut_$i"}, $form->{"lastcost_$i"}); do_query($form, $dbh, $query, @values); -- 2.20.1