X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIR.pm;h=f51ce4a4b3550f87a104dd23046f8fe2dc13260a;hb=66671e22ff33f493fae7d8a88145ac1ecf34b3b3;hp=9a6ca9ddc67dc13fced51e1b261e018b295bf252;hpb=e33a252f4725047d717297044b218d075abca3d8;p=kivitendo-erp.git diff --git a/SL/IR.pm b/SL/IR.pm index 9a6ca9ddc..f51ce4a4b 100644 --- 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