Add Asset Management app
Assets from purchase invoice lines, straight-line depreciation/amortization with salvage value, disposals, and [Asset Mgmt] sources in Batch GL Entries. Green third workspace with an app access guard.
This commit is contained in:
+3
-3
@@ -3,11 +3,11 @@
|
||||
require '../config.php';
|
||||
require_once '../assets/utils/otp_policy.php';
|
||||
require '../include_header.php';
|
||||
require_once '../assets/utils/app_registry.php';
|
||||
// successful login — redirect based on app_access
|
||||
if(!empty($_SESSION["login_status"])){
|
||||
$redirect = ($_SESSION['login_app_access'] ?? 'wms') === 'accounting'
|
||||
? $server_url . 'ac_dashboard/index.php'
|
||||
: $server_url . 'dashboard/index.php';
|
||||
$login_app = app_default_for_access($app_registry, $_SESSION['login_app_access'] ?? 'wms');
|
||||
$redirect = $server_url . app_home_path($app_registry, $login_app);
|
||||
header('Location: ' . $redirect);
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user