@page "/orders"
@inject PurchaseItemService PurchaseItemService
@inject SupplierService SupplierService
@inject NavigationManager Navigation
@using CutList.Core.Formatting
@using CutList.Web.Data.Entities
Track material that needs to be ordered from suppliers. Items are added manually or automatically from job optimization results.
@if (loading) {Loading...
} else { @if (tabItems.Count == 0) {| Material | Length | Qty | Supplier | Job | Status | Notes | Actions |
|---|---|---|---|---|---|---|---|
| @item.StockItem.Material.DisplayName | @ArchUnits.FormatFromInches((double)item.StockItem.LengthInches) | @item.Quantity | @if (item.Job != null) { @item.Job.DisplayName } else { - } | @item.Status | @(item.Notes ?? "-") |
@if (item.Status == PurchaseItemStatus.Pending)
{
}
@if (item.Status == PurchaseItemStatus.Ordered)
{
}
|