#WITH_ERROR(#FormError)
#IF(#INPUT.Page) #ENDIF#IF(#INPUT.PageSize) #ENDIF#IF(#INPUT.OrderBy) #ENDIF#IF(#INPUT.OrderDesc) #ENDIF #IF(#FormError)

{InputError}

#IF(#FormErrors.Reason.CustomerAssignedToAnotherPriceListAtThisTimeFrame)

{CustomerAssignedToAnotherPriceListAtThisTimeFrame}

#LOOP(#FormErrors.Reason.CustomerAssignedToAnotherPriceListAtThisTimeFrame.Errors) #IF(#Reason EQ "CustomerAssignedToAnotherPriceListAtThisTimeFrame") #IF(#Customer.BillingAddress.DisplayName)#Customer.BillingAddress.DisplayName #ENDIF(#Customer.NameOrAlias) #IF(#ItemNo+1 < #FormErrors.Reason.CustomerAssignedToAnotherPriceListAtThisTimeFrame.ErrorCount), #ENDIF #ENDIF #ENDLOOP

({Summary}: #FormErrors.Reason.CustomerAssignedToAnotherPriceListAtThisTimeFrame.ErrorCount)

#ELSIF(#FormErrors.Reason.ERROR_INVALIDCUSTOMER) {InvalidCustomer} #ELSE {PleaseCorrectErrors} #ENDIF
#ENDIF #BLOCK("Pager", #Customers) #INCLUDE("INC-PagerHeader") #LOOP(#Pager.Items) #LOCAL("IsActivated", 0) #LOOP(#Users)#IF(#IsActivated)#SET("IsActivated", 1)#ENDIF#ENDLOOP #IF(#COUNT(#Users)==0)#SET("IsActivated", 1)#ENDIF #ENDLOCAL #ENDLOOP
{AssignedCustomers}
#IF(NOT #DELETE)#INCLUDE("Pager")#ENDIF
#IF(#BillingAddress.DisplayName)#BillingAddress.DisplayName#ELSE#BillingAddress.FullName#ENDIF (#NameOrAlias)
#ENDBLOCK
#ENDWITH_ERROR