@model StockMaster.Models.Sale @{ ViewData["Title"] = "Sale Details"; }

Sale Details

Sale Information
#@Model.SaleId
@Model.DateTime.ToString("dd.MM.yyyy HH:mm")
@if (Model.Customer != null) { @Model.Customer.Name } else { Not specified }
@Model.Warehouse.Name
@if (Model.User != null) { @Model.User.FullName } else { Not specified }
Sale Items
@foreach (var item in Model.SaleItems) { }
Product Quantity Unit Price Total
@item.Product.Name
SKU: @item.Product.Sku
@item.Quantity @item.UnitPriceAtSale.ToString("N2") MKD @((item.Quantity * item.UnitPriceAtSale).ToString("N2")) MKD
TOTAL:
@Model.TotalAmount.ToString("N2") MKD
Summary
Product Types: @Model.SaleItems.Count
Total Quantity: @Model.SaleItems.Sum(i => i.Quantity)

Total Amount:
@Model.TotalAmount.ToString("N2") MKD
@if (Model.Customer != null) {
Customer Information

Name:
@Model.Customer.Name

Email:
@Model.Customer.Email

Phone:
@Model.Customer.Phone

Address:
@Model.Customer.Address

}
Actions
Back
@section Styles { }