@using PowderCoating.Application.DTOs.PurchaseOrder @using PowderCoating.Core.Enums @model PurchaseOrderDto @{ ViewData["Title"] = $"PO {Model.PoNumber}"; string StatusBadge(PurchaseOrderStatus s) => s switch { PurchaseOrderStatus.Draft => "secondary", PurchaseOrderStatus.Submitted => "primary", PurchaseOrderStatus.PartiallyReceived => "warning", PurchaseOrderStatus.Received => "success", PurchaseOrderStatus.Cancelled => "danger", _ => "secondary" }; }
| Item | SKU | Ordered | Received | Unit Cost | Line Total |
|---|---|---|---|---|---|
|
@item.ItemName
@if (!string.IsNullOrEmpty(item.Notes))
{
@item.Notes } |
@item.ItemSKU | @item.QuantityOrdered.ToString("G29") @item.UnitOfMeasure | @item.QuantityReceived.ToString("G29") @if (item.IsFullyReceived) { } | $@item.UnitCost.ToString("N2") | $@item.LineTotal.ToString("N2") |
| Subtotal | $@Model.SubTotal.ToString("N2") | ||||
| Shipping | $@Model.ShippingCost.ToString("N2") | ||||
| Total | $@Model.TotalAmount.ToString("N2") | ||||
Fully Received
@if (Model.ReceivedDate.HasValue) { @Model.ReceivedDate.Value.ToString("MM/dd/yyyy") }Cancelled
@Model.VendorName
@if (!string.IsNullOrEmpty(Model.VendorEmail)) {@Model.VendorEmail
} @if (!string.IsNullOrEmpty(Model.VendorPhone)) {@Model.VendorPhone
}