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:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user