#IF(#Payment.PaymentMethod.PaymentTypeMethod.ProductType EQ "invoice") #LOCAL("Birthday",#Undef) #LOCAL("Gender",#Undef) #IF (#DEFINED(#Customer.BillingAddress.Birthday)) #SET("Birthday", #Customer.BillingAddress.Birthday) #ENDIF #IF (#DEFINED(#Customer.BillingAddress.Gender)) #SET("Gender", #Customer.BillingAddress.Gender) #ENDIF #IF (NOT #DEFINED(#Birthday) OR NOT #DEFINED(#Gender))
#ENDIF #IF (#DEFINED(#Birthday)) #ELSE
{Birthday} {MandatoryStar}
#ENDIF #IF (#DEFINED(#Gender)) #ELSE
{Gender} {MandatoryStar}
#ENDIF #IF (NOT #DEFINED(#Birthday) OR NOT #DEFINED(#Gender))
{MandatoryFields}
#ENDIF #ENDLOCAL #ENDLOCAL #ENDIF