Opraveny nesmyslny vypocty ceny nepocitatelnych polozek
[mirrors/SokoMan.git] / assistants / sell.inc.php
index 20444e06819f83f8918840bcd8dfb745d312b2e1..26f963150170a6a13b4130a04e3eaaa47d2d54a0 100644 (file)
@@ -52,8 +52,8 @@ switch($SUBPATH[0]) {
                        echo("Stock: ".$quantity_stored."<br />Disposing/Selling: ".$quantity_removed."<br />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();
This page took 0.095727 seconds and 4 git commands to generate.