@using PowderCoating.Application.DTOs.Inventory @using PowderCoating.Web.Controllers @{ var item = ViewBag.ItemDto as InventoryItemDto; var myJobs = ViewBag.MyJobs as List ?? new(); var otherJobs = ViewBag.OtherJobs as List ?? new(); var preselectedJobId = ViewBag.PreselectedJobId as int?; var scanError = ViewBag.ScanError as string; ViewData["Title"] = $"Log Usage — {item?.Name}"; Layout = null; // mobile-first standalone page } Log Usage — @item?.Name @if (!string.IsNullOrEmpty(scanError)) {
⚠ @scanError
}
QR
@item.Name
@item.SKU
@if (!string.IsNullOrEmpty(item.ColorName)) {
@item.ColorName@(item.Finish != null ? " · " + item.Finish : "")
}
@item.QuantityOnHand.ToString("N2") @item.UnitOfMeasure on hand @if (item.IsOutOfStock) { · Out of Stock } else if (item.IsLowStock) { · Low Stock }
@Html.AntiForgeryToken()

1. Select Job (optional)

@if (myJobs.Any() || otherJobs.Any()) {
@if (myJobs.Any()) {
My Jobs (@myJobs.Count)
} @if (otherJobs.Any()) {
Other Jobs
}
No Job
@foreach (var j in myJobs) {
@j.JobNumber @j.CustomerName
}
} else {

No active jobs found. Usage will be logged without a job reference.

}

2. Enter Quantity

3. Reason

Job Usage
Waste / Spillage
Correction
Transfer Out
Cancel