Add ability to set default accountcodes

This commit is contained in:
agree
2021-05-05 21:28:47 -04:00
parent b9b8bed853
commit cf4f8d1e36
2 changed files with 21 additions and 0 deletions

View File

@@ -2192,4 +2192,19 @@ function number_pad($number,$n) {
}
}
//get accountode
if (!function_exists('get_accountcode')) {
function get_accountcode() {
if (strlen($accountcode = $_SESSION['domain']['accountcode']['text']) > 0) {
if ($accountcode == "none") {
return;
}
}
else {
$accountcode = $_SESSION['domain_name'];
}
return $accountcode;
}
}
?>