diff --git a/CutList.Web/Components/Layout/NavMenu.razor b/CutList.Web/Components/Layout/NavMenu.razor index 3329aac..5adf4b9 100644 --- a/CutList.Web/Components/Layout/NavMenu.razor +++ b/CutList.Web/Components/Layout/NavMenu.razor @@ -14,8 +14,8 @@
- @if (!IsNew) + @if (selectedShape != null) { -No stock lengths configured yet.
-Add common stock lengths for this material (e.g., 20', 24') to quickly populate project stock bins.
- } - else - { -| Length | -Qty | -Notes | -Actions | -
|---|---|---|---|
| @ArchUnits.FormatFromInches((double)stock.LengthInches) | -@stock.Quantity | -@(stock.Notes ?? "-") | -- - - | -
Loading...
} +else if (!string.IsNullOrEmpty(errorMessage)) +{ +@errorMessage+
No transaction history yet.
+ } + else + { +| Date | +Type | +Qty | +Supplier | +Price | +Notes | +
|---|---|---|---|---|---|
| @txn.CreatedAt.ToLocalTime().ToString("MM/dd/yy HH:mm") | ++ @txn.Type + | ++ @(txn.Quantity >= 0 ? "+" : "")@txn.Quantity + | +@(txn.Supplier?.Name ?? "-") | +@(txn.UnitPrice.HasValue ? txn.UnitPrice.Value.ToString("C") : "-") | +@(txn.Notes ?? "-") | +
| Material | +Shape | +Type | +Grade | +Size | Length | -Name | -Actions | +On Hand | +Actions |
|---|---|---|---|---|---|---|---|---|---|
| @item.Material.DisplayName | +@item.Material.Shape.GetDisplayName() | +@item.Material.Type | +@item.Material.Grade | +@item.Material.Size | @ArchUnits.FormatFromInches((double)item.LengthInches) | -@(item.Name ?? "-") | - Edit - + @if (item.QuantityOnHand > 0) + { + @item.QuantityOnHand + } + else + { + 0 + } + | +
+
+ Edit
+
+
|
Name | Contact Info | Notes | -Actions | +Actions | @@ -38,8 +38,10 @@ else@supplier.ContactInfo | @TruncateText(supplier.Notes, 50) |
- Edit
-
+
+ Edit
+
+
|
}
diff --git a/CutList.Web/Components/Pages/Tools/Index.razor b/CutList.Web/Components/Pages/Tools/Index.razor
index ce8092a..21b3e4c 100644
--- a/CutList.Web/Components/Pages/Tools/Index.razor
+++ b/CutList.Web/Components/Pages/Tools/Index.razor
@@ -1,5 +1,5 @@
@page "/tools"
-@inject ProjectService ProjectService
+@inject JobService JobService
@using CutList.Core.Formatting