include "includes/script_elems.php"; include "includes/page_elems.php"; LangUtil::setPageId("reports"); include "../users/accesslist.php"; if (!isLoggedIn(get_user_by_id($_SESSION['user_id']))) { header('Location: home.php'); } $date_from = ""; $date_to = ""; $hidePatientName = 0; $view_viz = $_REQUEST['viz']; $lab_config_id = $_REQUEST['location']; // visualization parameters $chart_column_width = 360; $defaultCurrency = currencyConfig::getDefaultCurrency($lab_config_id); $defCurrencyIfnotSet = get_lab_config_settings_billing(); if (is_null($defaultCurrency)) { $secondaryCurrencies = currencyConfig::getAllSecondaryCurrencies($lab_config_id, $defCurrencyIfnotSet); } else { $secondaryCurrencies = currencyConfig::getAllSecondaryCurrencies($lab_config_id, $defaultCurrency->getCurrencyTo()); } // Currency Type if (isset($_REQUEST['CT'])) { $currencyTo = $_REQUEST['CT']; } else { if (!is_null($defaultCurrency)) { $currencyTo = $defaultCurrency->getCurrencyTo(); } else { $currencyTo = $defCurrencyIfnotSet; } }
function is_billing_enabled($lid) { $current_state = get_lab_config_settings_billing(); if ($current_state['enabled'] == "1") { return true; } return false; }