@model PowderCoating.Application.DTOs.Customer.CustomerDto @{ ViewData["Title"] = !string.IsNullOrWhiteSpace(Model.CompanyName) ? Model.CompanyName : $"{Model.ContactFirstName} {Model.ContactLastName}".Trim(); ViewData["PageIcon"] = "bi-person-circle"; }
@Model.CompanyName
@if (Model.IsCommercial) { Commercial } else { Individual }
@if (!string.IsNullOrEmpty(Model.ContactFirstName) || !string.IsNullOrEmpty(Model.ContactLastName)) { @Model.ContactFirstName @Model.ContactLastName } else { Not provided }
@if (!string.IsNullOrEmpty(Model.Email)) { @Model.Email } else { Not provided }
@if (!string.IsNullOrEmpty(Model.BillingEmail)) { @Model.BillingEmail Invoices } else { Not set — invoices go to contact email }
@if (!string.IsNullOrEmpty(Model.Phone)) { @Model.Phone } else { Not provided }
@if (!string.IsNullOrEmpty(Model.MobilePhone)) { @Model.MobilePhone } else { Not provided }
@Model.Address
@if (!string.IsNullOrEmpty(Model.City)) { @Model.City } @if (!string.IsNullOrEmpty(Model.State)) { , @Model.State } @if (!string.IsNullOrEmpty(Model.ZipCode)) { @Model.ZipCode }
@if (!string.IsNullOrEmpty(Model.Country)) {@Model.Country
} } else {No address provided
}@(Model.TaxId ?? "Not provided")
@(Model.PaymentTerms ?? "Not set")
@Model.CreditLimit.ToString("C")
@(Model.PricingTierName ?? "Standard")
@if (Model.IsTaxExempt) { Tax Exempt } else { Taxable }
@Model.GeneralNotes
@Model.CreditLimit.ToString("C")
@((Model.CreditLimit - Model.CurrentBalance).ToString("C"))
| Memo # | Issued | Amount | Remaining |
|---|---|---|---|
|
@memo.MemoNumber
@memo.Reason
|
@memo.IssueDate.Tz(ViewBag.CompanyTimeZone as string).ToString("MM/dd/yy") | @memo.Amount.ToString("C") | @if (memo.RemainingBalance > 0) { @memo.RemainingBalance.ToString("C") } else { Used } |
@if (Model.LastContactDate.HasValue) { @Model.LastContactDate.Value.ToString("MMMM dd, yyyy") } else { No contact recorded }
@Model.CreatedAt.ToString("MMMM dd, yyyy")