Fall back to ProspectEmail for CustomerEmail on prospect quotes

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 <noreply@anthropic.com>
This commit is contained in:
2026-05-06 21:31:12 -04:00
parent 135fd6f8d7
commit 90f93b6e2f
@@ -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 =>