@model PowderCoating.Application.DTOs.Vendor.VendorDto @{ ViewData["Title"] = "Delete Vendor"; ViewData["PageIcon"] = "bi-truck"; var hasInventoryItems = ViewBag.InventoryItemCount > 0; }
This action will mark the vendor as deleted. All related records will be preserved but the vendor will no longer appear in active listings.
This vendor has @ViewBag.InventoryItemCount inventory item(s) associated with it. Deleting this vendor will not affect the inventory items, but the vendor reference will be maintained for historical records.
@Model.CompanyName
@if (Model.IsActive) { Active } else { Inactive } @if (Model.IsPreferred) { Preferred }
@(Model.ContactName ?? "Not provided")
@(Model.Email ?? "Not provided")
@(Model.Phone ?? "Not provided")
@if (!string.IsNullOrEmpty(Model.Website)) { @Model.Website } 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.AccountNumber ?? "Not provided")
@(Model.TaxId ?? "Not provided")
@(Model.PaymentTerms ?? "Not set")
@if (Model.CreditLimit.HasValue) { @Model.CreditLimit.Value.ToString("C") } else { Not set }