#REM #ENDREM #IF(#IsNewCustomer) #ENDIF #LOCAL("IsRegisteredUser", 0) #IF(#COUNT(#Users)) #SET("IsRegisteredUser", 1) #ENDIF
#BLOCK("WITH_FORM_ERROR", #FormError) #IF(#FormError)

{InputError}

#IF(#FormErrors.Reason.ObjectExists)

{ObjectExists}

#ELSIF(#FormErrors.Reason.STRING_TOO_LONG OR #FormError_BankName)

{StringTooLong}

#ELSIF(#FormErrors.Reason.CantRenameMerchant)

{CantRenameMerchant}

#ELSIF(#FormErrors.Reason.CantDeactivateMerchant)

{CantDeactivateMerchant}

#ELSIF(#FormErrors.Reason.STRING_EMPTY AND #FormError_EMail)

{NoMailaddress}

#ELSE

{PleaseCorrectErrors}

#ENDIF
#ENDIF
#REM #ENDREM
#REM #ENDREM
#IF(#IsRegisteredUser){BubbleHelpRegisteredCustomer}#ELSE#SPACE[0]{BubbleHelpUnregisteredCustomer}#ENDIF
#IF(#IsRegisteredUser) {UnityRegisteredCustomer} #ELSE {UnityUnRegisteredCustomer} #ENDIF (#CreationDate[date])
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#ENDBLOCK #LOCAL("AddressPrefix", "BillingAddress.") #BLOCK("WITH_FORM_ERROR", #FormError)
#REM #ENDREM #IF(#IsNewCustomer)
#REM #ENDREM #SNIPPET("SNIPPET-EditCustomerAddresses", "AddressPrefix, RegistrationSet, Head, ShowShippingAddress", "BillingAddress.", "BillingAddress", "{BillingAddress}",0)
#REM #ENDREM #ELSE #IF(#DEFINED(#ObjectForAddress)) #WITH(#ObjectForAddress.BillingAddress)
#REM #ENDREM #IF(#IsRegisteredUser) #SNIPPET("SNIPPET-EditCustomerAddresses", "AddressPrefix, RegistrationSet, Head, ToggleBox, ShowShippingAddress", "BillingAddress.", "BillingAddress", "{BillingAddress}", "ep-customer-shippingaddress", #RegisteredUserShowShippingAddress) #ELSE #REM #ENDREM #IF(#UnRegisteredEditable) #SNIPPET("SNIPPET-EditCustomerAddresses", "AddressPrefix, RegistrationSet, Head, ShowShippingAddress", "BillingAddress.", "BillingAddress", "{BillingAddress}",0) #ELSE #SNIPPET("SNIPPET-DisplayCustomerAddresses", "AddressPrefix, RegistrationSet, Head, ToggleBox", "BillingAddress.", "BillingAddress", "{BillingAddress}", "ep-customer-shippingaddress") #ENDIF #ENDIF
#REM #ENDREM #ENDWITH #ENDIF #IF(#DEFINED(#UsableShippingAddress)) #WITH(#UsableShippingAddress) #SET("AddressPrefix", "ShippingAddress.")
#REM #ENDREM #IF(#IsRegisteredUser) #SNIPPET("SNIPPET-EditCustomerAddresses", "AddressPrefix, RegistrationSet, Head", "ShippingAddress.", "ShippingAddress", "{ShippingAddress}") #ELSE #SNIPPET("SNIPPET-DisplayCustomerAddresses", "AddressPrefix, RegistrationSet, Head", "ShippingAddress.", "ShippingAddress", "{ShippingAddress}") #ENDIF
#REM #ENDREM #ENDWITH #ELSE #IF(#IsRegisteredUser)
#REM #ENDREM #SNIPPET("SNIPPET-EditCustomerAddresses", "AddressPrefix, RegistrationSet, Head", "ShippingAddress.", "ShippingAddress", "{ShippingAddress}")
#REM #ENDREM #ENDIF #ENDIF #ENDIF
#REM #ENDREM #ENDBLOCK #ENDLOCAL#REM AddressPrefix #ENDREM
#REM#ENDREM
#REM#ENDREM #ENDLOCAL#REM IsRegisteredUser #ENDREM
#REM#ENDREM