@model PowderCoating.Web.ViewModels.QuoteApprovalViewModel @{ Layout = "_QuoteApprovalLayout"; ViewData["Title"] = $"Quote {Model.QuoteNumber}"; ViewBag.CompanyName = Model.CompanyName; var daysUntilExpiry = Model.ExpirationDate.HasValue ? (Model.ExpirationDate.Value.Date - DateTime.UtcNow.Date).TotalDays : (double?)null; bool soonExpiry = daysUntilExpiry.HasValue && daysUntilExpiry.Value >= 0 && daysUntilExpiry.Value <= 3; bool expired = daysUntilExpiry.HasValue && daysUntilExpiry.Value < 0; bool showDeclinePanel = Model.DeclineError != null; }

Quote @Model.QuoteNumber

Prepared for @Model.CustomerName

@if (Model.ExpirationDate.HasValue) { Valid until @Model.ExpirationDate.Value.ToString("MMMM d, yyyy") }
@if (soonExpiry) {
This quote expires in @((int)daysUntilExpiry!.Value) day(s). Please respond promptly.
} @if (!string.IsNullOrWhiteSpace(Model.Description)) {

@Model.Description

}
Quote Items
@foreach (var item in Model.Items) { } @if (!Model.Items.Any()) { }
Description Qty Unit Price Total
@item.Description @item.Quantity @item.UnitPrice.ToString("C") @item.TotalPrice.ToString("C")
No line items
Items Subtotal @Model.ItemsSubtotal.ToString("C")
@if (Model.OvenBatchCost > 0) {
Oven Processing @Model.OvenBatchCost.ToString("C")
} @if (Model.ShopSuppliesAmount > 0) {
Shop Supplies (@(Model.ShopSuppliesPercent.ToString("0.##"))%) @Model.ShopSuppliesAmount.ToString("C")
} @if (Model.OvenBatchCost > 0 || Model.ShopSuppliesAmount > 0) {
Subtotal @Model.SubTotal.ToString("C")
} @if (Model.DiscountAmount > 0 && !Model.HideDiscountFromCustomer) {
Discount -@Model.DiscountAmount.ToString("C")
} @if (Model.RushFee > 0) {
Rush Fee @Model.RushFee.ToString("C")
} @if (Model.TaxAmount > 0) {
Tax @Model.TaxAmount.ToString("C")
}
Total @Model.Total.ToString("C")
@if (!string.IsNullOrWhiteSpace(Model.Terms)) {
Terms & Conditions
@Model.Terms
} @if (!string.IsNullOrWhiteSpace(Model.SpecialInstructions)) {
Special Instructions
@Model.SpecialInstructions
} @if (!string.IsNullOrWhiteSpace(Model.DeclineError)) {
@Model.DeclineError
}
Please review and respond to this quote
@Html.AntiForgeryToken()
@Html.AntiForgeryToken()
@if (!string.IsNullOrWhiteSpace(Model.CompanyPhone) || !string.IsNullOrWhiteSpace(Model.CompanyEmail)) {

Questions? Contact us:

@if (!string.IsNullOrWhiteSpace(Model.CompanyPhone)) { @Model.CompanyPhone } @if (!string.IsNullOrWhiteSpace(Model.CompanyEmail)) { @Model.CompanyEmail }
} @section Scripts { }