Removed obsolete stock_moves.visible field; changed add_stock_move() prototype.
[fa-stable.git] / reporting / rep301.php
index 953bafcad3544903091020f04260ae9f392fa8e0..fe8b58e743a9480ee840c37aad03ea6f99f5ff84 100644 (file)
@@ -133,7 +133,7 @@ function getTransactions($category, $location, $date)
 
 function print_inventory_valuation_report()
 {
-    global $path_to_root, $use_costed_values;;
+    global $path_to_root, $SysPrefs;
 
        $date = $_POST['PARAM_0'];
     $category = $_POST['PARAM_1'];
@@ -211,7 +211,7 @@ function print_inventory_valuation_report()
                        if ($detail)
                                $rep->NewLine();
                }
-               if (isset($use_costed_values) && $use_costed_values==1)
+               if (isset($SysPrefs->use_costed_values) && $SysPrefs->use_costed_values==1)
                {
                        $UnitCost = getAverageCost($trans['stock_id'], $date);
                        $ItemTotal = $trans['QtyOnHand'] * $UnitCost;