#IF(#MailType.Header)

#MailType.Header[0]

#ENDIF

{Hello} #Address.FullName,

{AppointmentAccepted}

{Appointment}

#IF(#DEFINED(#Parent.Parent.Description[0])) #ENDIF #IF(#COUNT(#Services)) #LOOP(#Services) #ENDLOOP #ELSIF(#DEFINED(#ServicesString))
#ServicesString
#ENDIF #IF(#CustomerComment) #ENDIF
{AppointmentID}: #IF(#User AND NOT #User.IsAnonymous)#Alias#ELSE#Alias#ENDIF
{Date}: #StartDate[date:full]  #StartDate[time_tz] - #IF(#FUNCTION("YMD",#StartDate) EQ #FUNCTION("YMD",#EndDate))#EndDate[time_tz]#ELSE#EndDate[date:full]  #EndDate[time_tz]#ENDIF
{Product}: #Parent.Parent.NameOrAlias
{Description}: #Parent.Parent.Description[0]
{Quantity}: #Quantity
{Created}: #CreationDate[datetime]
{AcceptedOn}: #AcceptedOn[datetime]
#Attribute.NameOrAlias #LOCAL("ServiceID",#ID) #IF(#ID == #ServiceID) #ValueOrAlias #ENDIF #ENDLOCAL
{Options}
{UserComment}: #CustomerComment
#IF(#Address)#WITH(#Address)

{Address}

#FUNCTION("LocaleInclude", "Address", #Country.Code2) #LOCAL("_URL",1)#INCLUDE("CustomerInfo")#ENDLOCAL

#ENDWITH#ENDIF #IF(#MailType.AdditionalText)

#MailType.AdditionalText[0]

#ENDIF