{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(#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]
#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