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:
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
$cp = $_SERVER['PHP_SELF'];
|
||||
function asset_active(...$frags) {
|
||||
global $cp;
|
||||
foreach ($frags as $f) { if (str_contains($cp, $f)) return 'active'; }
|
||||
return '';
|
||||
}
|
||||
$asset_show_accounting = in_array($_SESSION['login_app_access'] ?? 'wms', ['all', 'accounting'], true);
|
||||
?>
|
||||
<!-- SIDEBAR -->
|
||||
<aside id="sidebar" class="sidebar overflow-y-auto">
|
||||
<div class="logo-area">
|
||||
<a href="<?php echo $server_url?>asset_dashboard/index.php" class="d-inline-flex">
|
||||
<span class="logo-text">
|
||||
<img src="<?php echo $server_url?>assets/images/logo.png" alt="" height="48"/>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="nav flex-column">
|
||||
|
||||
<!-- Main -->
|
||||
<li class="nav-text-space">
|
||||
<small class="nav-text text-muted">Main</small>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="nav-link <?php echo asset_active('/asset_dashboard/'); ?>" href="<?php echo $server_url?>asset_dashboard/index.php">
|
||||
<i class="ti ti-home"></i>
|
||||
<span class="nav-text">Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Assets -->
|
||||
<li class="nav-text-space">
|
||||
<small class="nav-text text-muted">Assets</small>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="nav-link <?php echo asset_active('/asset/index', '/asset/manage_asset'); ?>" href="<?php echo $server_url?>asset/index.php">
|
||||
<i class="ti ti-building-warehouse"></i>
|
||||
<span class="nav-text">Asset Register</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="nav-link <?php echo asset_active('/asset/purchase_invoices'); ?>" href="<?php echo $server_url?>asset/purchase_invoices.php">
|
||||
<i class="ti ti-file-invoice"></i>
|
||||
<span class="nav-text">From Purchase Invoices</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Depreciation -->
|
||||
<li class="nav-text-space">
|
||||
<small class="nav-text text-muted">Depreciation</small>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="nav-link <?php echo asset_active('/asset/depreciation'); ?>" href="<?php echo $server_url?>asset/depreciation.php">
|
||||
<i class="ti ti-calendar-stats"></i>
|
||||
<span class="nav-text">Depreciation Runs</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- Setup -->
|
||||
<li class="nav-text-space">
|
||||
<small class="nav-text text-muted">Setup</small>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="nav-link <?php echo asset_active('/asset/categories', '/asset/manage_category'); ?>" href="<?php echo $server_url?>asset/categories.php">
|
||||
<i class="ti ti-category"></i>
|
||||
<span class="nav-text">Asset Categories</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php if ($asset_show_accounting): ?>
|
||||
<!-- Accounting -->
|
||||
<li class="nav-text-space">
|
||||
<small class="nav-text text-muted">Accounting</small>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="nav-link" href="<?php echo $server_url?>accounting/gl_entries.php">
|
||||
<i class="ti ti-stack-2"></i>
|
||||
<span class="nav-text">Batch GL Entries</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<li><br><br><br><br></li>
|
||||
|
||||
</ul>
|
||||
</aside>
|
||||
Reference in New Issue
Block a user