#IF(#MailType.Header)

#MailType.Header[0]

#ENDIF

{Hello} #Address.FullName,

{AppointmentCancelled}

{Appointment}

#IF(#DEFINED(#Parent.Parent.Description[0])) #ENDIF #IF(#AcceptedOn) #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]
{CancelledOn}: #CancelledOn[datetime]
{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