@model PowderCoating.Application.DTOs.Customer.CustomerDto @{ ViewData["Title"] = !string.IsNullOrWhiteSpace(Model.CompanyName) ? Model.CompanyName : $"{Model.ContactFirstName} {Model.ContactLastName}".Trim(); ViewData["PageIcon"] = "bi-person-circle"; }
Status: @(Model.IsActive ? "Active Customer" : "Inactive Customer") @if (!Model.IsActive) { - This customer is currently inactive }
Company Information

@Model.CompanyName

@if (Model.IsCommercial) { Commercial } else { Individual }

Contact Information

@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 (Model.IsCommercial) {

@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 }

@if (Model.NotifyByEmail) { Email on } else { Email off } @if (Model.NotifyBySms) { SMS on } else { SMS off }
Address
@if (!string.IsNullOrEmpty(Model.Address)) {

@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

}
Business Information

@(Model.TaxId ?? "Not provided")

@(Model.PaymentTerms ?? "Not set")

@Model.CreditLimit.ToString("C")

@(Model.PricingTierName ?? "Standard")

@if (Model.IsTaxExempt) { Tax Exempt } else { Taxable }

@if (Model.HasTaxExemptCertificate) {
File on record: @Model.TaxExemptCertificateFileName
Download
} @if (Model.IsTaxExempt && !Model.HasTaxExemptCertificate) {
No certificate on file. Please upload a tax exempt certificate to complete the record.
}
@if (!string.IsNullOrEmpty(Model.GeneralNotes)) {
Notes

@Model.GeneralNotes

}
Financial Summary

@Model.CurrentBalance.ToString("C")

@if (Model.CreditLimit > 0) {

@Model.CreditLimit.ToString("C")

@((Model.CreditLimit - Model.CurrentBalance).ToString("C"))

}

@Model.CreditBalance.ToString("C")

Available for future invoices
@if (User.IsInRole("SuperAdmin") || User.IsInRole("Administrator")) { }
@{ var creditMemos = ViewBag.CreditMemos as List; } @if (creditMemos != null && creditMemos.Count > 0) {
Store Credit History
@foreach (var memo in creditMemos) { }
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 }
}
Activity

@if (Model.LastContactDate.HasValue) { @Model.LastContactDate.Value.ToString("MMMM dd, yyyy") } else { No contact recorded }

@Model.CreatedAt.ToString("MMMM dd, yyyy")

Quick Actions
Edit Customer Job History View Invoices New Job New Quote @if (User.IsInRole("SuperAdmin") || User.IsInRole("Administrator")) { } Delete Customer
@if (User.IsInRole("SuperAdmin") || User.IsInRole("Administrator")) { }