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

+
+ +
+ @if (Model.NotifyByEmail) + { + + Email on + + } + else + { + + Email off + + } + @if (Model.NotifyBySms) + { + + SMS on + + } + else + { + + SMS off + + } +
+
diff --git a/src/PowderCoating.Web/Views/Customers/Index.cshtml b/src/PowderCoating.Web/Views/Customers/Index.cshtml index f0c471c..d83dc1d 100644 --- a/src/PowderCoating.Web/Views/Customers/Index.cshtml +++ b/src/PowderCoating.Web/Views/Customers/Index.cshtml @@ -74,6 +74,7 @@ Type Balance Status + Notifications Actions @@ -152,6 +153,14 @@ @await Html.PartialAsync("_StatusChip", (Kind: StatusChipHelper.Active(customer.IsActive), Text: customer.IsActive ? "Active" : "Inactive")) + + + + + + + +