X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep301.php;h=fe8b58e743a9480ee840c37aad03ea6f99f5ff84;hb=fd11a3b500e79a3e98f7a3860f872cd31ce33113;hp=9d2b83bae24da5a40723db8748892bbb91f142ae;hpb=fbf51ab0febfd0885620abcab8738339d156ff45;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