X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=assistants%2Fsell.inc.php;h=26f963150170a6a13b4130a04e3eaaa47d2d54a0;hb=274c2053a765e8b3cfecd046f60cc4b057971d35;hp=20444e06819f83f8918840bcd8dfb745d312b2e1;hpb=253705f2193c14e1f4162a37e8d1550d79efe5ec;p=mirrors%2FSokoMan.git diff --git a/assistants/sell.inc.php b/assistants/sell.inc.php index 20444e0..26f9631 100644 --- a/assistants/sell.inc.php +++ b/assistants/sell.inc.php @@ -52,8 +52,8 @@ switch($SUBPATH[0]) { echo("Stock: ".$quantity_stored."
Disposing/Selling: ".$quantity_removed."
Keeping: ".$item_quantity); $current[$item_id]['item_quantity'] = $item_quantity; - $current[$item_id]['item_price_in'] = $item_quantity * $model_price_in; - $current[$item_id]['item_price_out'] = $item_quantity * $model_price_out; + $current[$item_id]['item_price_in'] -= $quantity_removed * $model_price_in; + $current[$item_id]['item_price_out'] -= $quantity_removed * $model_price_out; $forked_item[$item_id]['item_id'] = ''; $forked_item[$item_id]['item_serial'] .= '@'.time();