#IF(#FormErrors.Reason.WebserviceAuthorizationFailed)
{AuthenticationFailure}
{BarCodeWebserviceAuthorizationFailed}
{CheckNow}
#ELSIF(#FormErrors.Reason.PermissionDenied)
{PermissionDenied}
{CannotDelete}
#ELSIF(#FormErrors.Form.ExportShippingLabels)
{ExportErrors}
#LOOP(#FormErrors.Form.ExportShippingLabels.Errors)
#LOCAL("FormErrorPrinted", 1)
#IF(#Reason EQ "ProductCodeMissing")
#WITH(#ShippingLabel)#INCLUDE("INC-LinkToShippingLabel")#ENDWITH: {DispatchTypeMissing}
#ENDIF
#IF(#Reason EQ "AddressMissing")
#WITH(#ShippingLabel)#INCLUDE("INC-LinkToShippingLabel")#ENDWITH: {AddressMissing}
#ENDIF
#IF((#Reason NE "ProductCodeMissing")AND(#Reason NE "AddressMissing"))
#SET("FormErrorPrinted", 0)
#MENU("FormErrorMenu")#INCLUDE(#Template)#ENDMENU
#ENDIF
#IF(NOT #FormErrorPrinted)
{UnknownError} #Reason: #Name (#Message)
#ENDIF
#ENDLOCAL
#ENDLOOP
#ELSE
{InputError}
{PleaseCorrectErrors}
#ENDIF
#ENDIF
#IF(NOT #DELETE AND #COUNT(#Pager.Items) != 0 AND #FUNCTION("MENU_COUNT", "BatchActions") > 0)
#SNIPPET("INC-BatchActions", "BatchActions", "BatchActions",1)
#ENDIF
#INCLUDE("INC-PagerHeader")
#IF(#ShippingFulfillmentType AND #ShippingFulfillmentType.AdminURL)