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'];
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;
$rep->End();
}
-?>
\ No newline at end of file