Hide Financial Reports, Financial Dashboard, Client Portal Invoices/Quotes of Accounting module is disabled, also included the settings into the client portal, so all settings vars are easily accessable within the portal

This commit is contained in:
johnnyq 2023-11-20 17:20:49 -05:00
parent ed625b2d98
commit dcd5103819
4 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,9 @@
<div class="col-md-12">
<div class="btn-group btn-group-lg btn-block">
<a href="dashboard.php" class="btn btn-<?php if (basename($_SERVER["PHP_SELF"]) == "dashboard.php") { echo "dark"; } else { echo "secondary"; } ?>">Personal <small>(WIP)</small></a>
<?php if($config_module_enable_accounting == 1) { ?>
<a href="dashboard_financial.php" class="btn btn-<?php if (basename($_SERVER["PHP_SELF"]) == "dashboard_financial.php") { echo "dark"; } else { echo "secondary"; } ?>">Administrative</a>
<?php } ?>
<a href="dashboard_technical.php" class="btn btn-<?php if (basename($_SERVER["PHP_SELF"]) == "dashboard_technical.php") { echo "dark"; } else { echo "secondary"; } ?>">Technical</a>
</div>
</div>

View File

@ -6,6 +6,8 @@
require_once '../config.php';
require_once '../get_settings.php';
require_once '../functions.php';
require_once 'check_login.php';

View File

@ -45,7 +45,8 @@ header("X-Frame-Options: DENY"); // Legacy
<li class="nav-item">
<a class="nav-link <?php if (basename($_SERVER['PHP_SELF']) == "tickets.php" || basename($_SERVER['PHP_SELF']) == "ticket_add.php" || basename($_SERVER['PHP_SELF']) == "ticket.php") {echo "active";} ?>" href="tickets.php">Tickets</a>
</li>
<?php if ($session_contact_primary == 1 || $session_contact_is_billing_contact) { ?>
<?php if (($session_contact_primary == 1 || $session_contact_is_billing_contact) && $config_module_enable_accounting == 1) { ?>
<li class="nav-item">
<a class="nav-link <?php if (basename($_SERVER['PHP_SELF']) == "invoices.php") {echo "active";} ?>" href="invoices.php">Invoices</a>
</li>

View File

@ -13,7 +13,7 @@
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" data-accordion="false">
<?php if ($session_user_role == 1 || $session_user_role == 3) { ?>
<?php if ($session_user_role == 1 || $session_user_role == 3 && $config_module_enable_accounting == 1) { ?>
<li class="nav-header">FINANCIAL</li>
<li class="nav-item">