From 90f93b6e2ff1a8a03d521f2c4d6c176c67a11f30 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Wed, 6 May 2026 21:31:12 -0400 Subject: [PATCH] Fall back to ProspectEmail for CustomerEmail on prospect quotes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prospect quotes have no CustomerId so Customer is null — email is stored in ProspectEmail directly on the quote. The send-button visibility check was always seeing null and showing the 'no contact info' warning. Co-Authored-By: Claude Sonnet 4.6 --- src/PowderCoating.Application/Mappings/QuoteProfile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowderCoating.Application/Mappings/QuoteProfile.cs b/src/PowderCoating.Application/Mappings/QuoteProfile.cs index 5def287..bc18feb 100644 --- a/src/PowderCoating.Application/Mappings/QuoteProfile.cs +++ b/src/PowderCoating.Application/Mappings/QuoteProfile.cs @@ -35,7 +35,7 @@ public class QuoteProfile : Profile .ForMember(dest => dest.CustomerName, opt => opt.MapFrom(src => src.Customer != null ? src.Customer.CompanyName : null)) .ForMember(dest => dest.CustomerEmail, opt => opt.MapFrom(src => - src.Customer != null ? src.Customer.Email : null)) + src.Customer != null ? src.Customer.Email : src.ProspectEmail)) .ForMember(dest => dest.CustomerMobilePhone, opt => opt.MapFrom(src => src.Customer != null ? src.Customer.MobilePhone : null)) .ForMember(dest => dest.CustomerNotifyBySms, opt => opt.MapFrom(src =>