From a9048dea2ebaacc2a89599ee1b583723cdd6b64e Mon Sep 17 00:00:00 2001
From: Scott Pouliot
Date: Sat, 2 May 2026 20:27:28 -0400
Subject: [PATCH] Show email and SMS notification status on customer list and
details
Added notification preference indicators to both views so staff can
see at a glance whether a customer has email/SMS enabled without
opening edit mode.
Co-Authored-By: Claude Sonnet 4.6
---
.../DTOs/Customer/CustomerDtos.cs | 2 ++
.../Views/Customers/Details.cshtml | 29 +++++++++++++++++++
.../Views/Customers/Index.cshtml | 9 ++++++
3 files changed, 40 insertions(+)
diff --git a/src/PowderCoating.Application/DTOs/Customer/CustomerDtos.cs b/src/PowderCoating.Application/DTOs/Customer/CustomerDtos.cs
index 146bf3d..743be30 100644
--- a/src/PowderCoating.Application/DTOs/Customer/CustomerDtos.cs
+++ b/src/PowderCoating.Application/DTOs/Customer/CustomerDtos.cs
@@ -168,6 +168,8 @@ public class CustomerListDto
public decimal CurrentBalance { get; set; }
public bool IsActive { get; set; }
public DateTime? LastContactDate { get; set; }
+ public bool NotifyByEmail { get; set; }
+ public bool NotifyBySms { get; set; }
}
public class AddCreditDto
diff --git a/src/PowderCoating.Web/Views/Customers/Details.cshtml b/src/PowderCoating.Web/Views/Customers/Details.cshtml
index c34df13..86d432f 100644
--- a/src/PowderCoating.Web/Views/Customers/Details.cshtml
+++ b/src/PowderCoating.Web/Views/Customers/Details.cshtml
@@ -132,6 +132,35 @@
}