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:
Thanakorn
2026-09-15 09:50:55 +07:00
parent 9512d440dd
commit c957280aa5
46 changed files with 4316 additions and 131 deletions
+3 -3
View File
@@ -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;
}