{Hello} #Address.FullName,

{AppointmentCancelled}

{Appointment}

#IF(#DEFINED(#Parent.Parent.Description[0])) #ENDIF #IF(#AcceptedOn) #ENDIF #IF(#CustomerComment) #ENDIF
{AppointmentID}: #IF(#IsTest) #IF(#NextAppointmentNo) #NextAppointmentNo #ELSE 1234 #ENDIF #ELSE #IF(#User AND NOT #User.IsAnonymous)#Alias#ELSE#Alias#ENDIF #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}: #IF(#IsTest) {Resource} ABC #ELSE #Parent.Parent.NameOrAlias #ENDIF
{Description}: #Parent.Parent.Description[0]
{Quantity}: #Quantity
{Created}: #IF(#IsTest)#Now[datetime]#ELSE#CreationDate[datetime]#ENDIF
{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