Revision 96b0d77f
Von Rolf Fluehmann vor fast 11 Jahren hinzugefügt
SL/IR.pm | ||
---|---|---|
210 | 210 |
|
211 | 211 |
# update parts table by setting lastcost to current price, don't allow negative values by using abs |
212 | 212 |
$query = qq|UPDATE parts SET lastcost = ? WHERE id = ?|; |
213 |
@values = (abs($fxsellprice / $basefactor), conv_i($form->{"id_$i"})); |
|
213 |
@values = (abs($fxsellprice * $form->{exchangerate} / $basefactor), conv_i($form->{"id_$i"}));
|
|
214 | 214 |
do_query($form, $dbh, $query, @values); |
215 | 215 |
|
216 | 216 |
# check if we sold the item already and |
Auch abrufbar als: Unified diff
fixed fix #1795.(exchange)