]> wagnertech.de Git - mfinanz.git/blobdiff - SL/IR.pm
Umstellung der Form.pm auf die Verwendung parametrisierter Queries zur Vermeidung...
[mfinanz.git] / SL / IR.pm
index 9a6ca9ddc67dc13fced51e1b261e018b295bf252..f51ce4a4b3550f87a104dd23046f8fe2dc13260a 100644 (file)
--- a/SL/IR.pm
+++ b/SL/IR.pm
@@ -224,9 +224,8 @@ sub post_invoice {
 
         $dbh->do($query) || $form->dberror($query);
 
-        $form->update_balance($dbh, "parts", "onhand",
-                              qq|id = $form->{"id_$i"}|,
-                              $baseqty)
+        $form->update_balance($dbh, "parts", "onhand", qq|id = ?|,
+                              $baseqty, $form->{"id_$i"})
           unless $form->{shipped};
 
         # check if we sold the item already and