X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep301.php;h=fe8b58e743a9480ee840c37aad03ea6f99f5ff84;hb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;hp=9d2b83bae24da5a40723db8748892bbb91f142ae;hpb=01dd975d5588641f9b56ae26bd112d4d9ba31783;p=fa-stable.git diff --git a/reporting/rep301.php b/reporting/rep301.php index 9d2b83ba..fe8b58e7 100644 --- a/reporting/rep301.php +++ b/reporting/rep301.php @@ -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; @@ -258,4 +258,3 @@ function print_inventory_valuation_report() $rep->End(); } -?> \ No newline at end of file