diff --git a/src/PowderCoating.Application/Mappings/QuoteProfile.cs b/src/PowderCoating.Application/Mappings/QuoteProfile.cs index 280bf97..5def287 100644 --- a/src/PowderCoating.Application/Mappings/QuoteProfile.cs +++ b/src/PowderCoating.Application/Mappings/QuoteProfile.cs @@ -34,6 +34,14 @@ public class QuoteProfile : Profile src.OvenCost != null ? src.OvenCost.Label : null)) .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)) + .ForMember(dest => dest.CustomerMobilePhone, opt => opt.MapFrom(src => + src.Customer != null ? src.Customer.MobilePhone : null)) + .ForMember(dest => dest.CustomerNotifyBySms, opt => opt.MapFrom(src => + src.Customer != null && src.Customer.NotifyBySms)) + .ForMember(dest => dest.CustomerNotifyByEmail, opt => opt.MapFrom(src => + src.Customer == null || src.Customer.NotifyByEmail)) .ForMember(dest => dest.PreparedByName, opt => opt.MapFrom(src => src.PreparedBy != null ? $"{src.PreparedBy.FirstName} {src.PreparedBy.LastName}" : null)) // Discount enum to string conversion