@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 {Not provided
}@Model.ShipToAddress
@if (!string.IsNullOrEmpty(Model.ShipToCity)) { @Model.ShipToCity } @if (!string.IsNullOrEmpty(Model.ShipToState)) { , @Model.ShipToState } @if (!string.IsNullOrEmpty(Model.ShipToZipCode)) { @Model.ShipToZipCode }
@if (!string.IsNullOrEmpty(Model.ShipToCountry)) {@Model.ShipToCountry
}@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.LeadSource
@Model.CreditLimit.ToString("C")
@(Model.PricingTierName ?? "Standard")
@if (Model.IsTaxExempt) { Tax Exempt } else { Taxable }
@Model.GeneralNotes
| Name / Role | Phone | ||
|---|---|---|---|
|
@displayName
@if (!string.IsNullOrEmpty(c.ContactRole))
{
@c.ContactRole
}
@if (!string.IsNullOrEmpty(c.Title))
{
@c.Title
}
|
@if (!string.IsNullOrEmpty(c.Email)) { @c.Email } else { — } | @if (!string.IsNullOrEmpty(c.Phone ?? c.MobilePhone)) { @(c.Phone ?? c.MobilePhone) } else { — } | |
| No additional contacts. Click “Add Contact” to add billing, ops, or drop-off contacts. | |||
@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 } |