@using PowderCoating.Core.Entities @model List @{ ViewData["Title"] = "Fixed Assets"; ViewData["PageIcon"] = "bi-building-gear"; var now = DateTime.Now; }
@if (TempData["Success"] != null) { } @if (TempData["Error"] != null) { }
Active Assets
@ViewBag.ActiveCount
Total Cost
@((ViewBag.TotalCost as decimal? ?? 0).ToString("C"))
Accum. Depreciation
@((ViewBag.TotalAccumDeprec as decimal? ?? 0).ToString("C"))
Total Book Value
@((ViewBag.TotalBookValue as decimal? ?? 0).ToString("C"))
Post Monthly Depreciation
@Html.AntiForgeryToken()
Creates one Journal Entry per asset. Fully-depreciated and disposed assets are skipped.
Asset Register
@if (!Model.Any()) {

No fixed assets yet. Add your first asset to start tracking depreciation.

} else {
@foreach (var a in Model) { var fullyDeprec = a.AccumulatedDepreciation >= (a.PurchaseCost - a.SalvageValue); }
Asset Purchase Date Cost Salvage Value Life (mo.) Monthly Depr. Accum. Depr. Book Value Status
@a.Name @if (!string.IsNullOrWhiteSpace(a.Description)) {
@a.Description
}
@a.PurchaseDate.ToLocalTime().ToString("MM/dd/yyyy") @a.PurchaseCost.ToString("C") @a.SalvageValue.ToString("C") @a.UsefulLifeMonths @a.MonthlyDepreciation.ToString("C") @a.AccumulatedDepreciation.ToString("C") @a.BookValue.ToString("C") @if (a.IsDisposed) { Disposed } else if (fullyDeprec) { Fully Depreciated } else { Active }
}