From b53c93926a26aeca51e097d2599841e33a1da6a3 Mon Sep 17 00:00:00 2001 From: Rolf Fluehmann Date: Wed, 8 Jan 2014 09:14:19 +0100 Subject: [PATCH] 1795: falscher Einbezug des Rabattes im letzten Einkaufspreis der Einkaufsrechnung --- SL/IR.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/IR.pm b/SL/IR.pm index 84ce10a17..b3c99b829 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -210,7 +210,7 @@ sub post_invoice { # update parts table by setting lastcost to current price, don't allow negative values by using abs $query = qq|UPDATE parts SET lastcost = ? WHERE id = ?|; - @values = (abs($form->{"sellprice_$i"} / $basefactor), conv_i($form->{"id_$i"})); + @values = (abs($fxsellprice / $basefactor), conv_i($form->{"id_$i"})); do_query($form, $dbh, $query, @values); # check if we sold the item already and -- 2.20.1