@model StockMaster.Models.PurchaseOrder @{ ViewData["Title"] = "Order Details"; var totalCost = Model.PurchaseOrderItems.Sum(i => i.Quantity * i.UnitCost); }
| Product | Order Quantity | Received Quantity | Unit Cost | Total |
|---|---|---|---|---|
|
@item.Product.Name
SKU: @item.Product.Sku |
@item.Quantity | @if (item.ReceivedQuantity > 0) { @item.ReceivedQuantity } else { 0 } | @item.UnitCost.ToString("N2") MKD | @((item.Quantity * item.UnitCost).ToString("N2")) MKD |
| TOTAL COST: |
@totalCost.ToString("N2") MKD |
|||
Company:
@Model.Supplier.Name
Contact:
@Model.Supplier.ContactPerson
Email:
@Model.Supplier.Email
Phone:
@Model.Supplier.Phone
Address:
@Model.Supplier.Address
Received Date:
@Model.ActualDeliveryDate.Value.ToString("dd.MM.yyyy HH:mm")