#IF(#FormError)
#IF(#FormErrors.Form.ExportShippingLabels)
{ExportErrors}
#LOOP(#FormErrors.Form.ExportShippingLabels.Errors)
#LOCAL("FormErrorPrinted", 1)
#IF(#Reason EQ "AddressMissing")
#WITH(#ShippingLabel)#INCLUDE("INC-LinkToShippingLabel")#ENDWITH: {AddressMissing}
#ENDIF
#IF(#Reason EQ "TotalWeightMissing")
#WITH(#ShippingLabel)#INCLUDE("INC-LinkToShippingLabel")#ENDWITH: {TotalWeightMissing}
#ENDIF
#IF((#Reason NE "AddressMissing")AND(#Reason NE "TotalWeightMissing"))
#SET("FormErrorPrinted", 0)
#MENU("FormErrorMenu")#INCLUDE(#Template)#ENDMENU
#ENDIF
#IF(NOT #FormErrorPrinted)
{UnknownError} #Reason: #Name (#Message)
#ENDIF
#ENDLOCAL
#ENDLOOP
#ELSE
{InputError}
{PleaseCorrectErrors}
#ENDIF
#ENDIF
#SNIPPET("INC-PagerHeader", "ContextObjects", "{Transactions}")
#IF(NOT #DELETE)
#SNIPPET("INC-BatchActions", "BatchActions", "BatchActions", 1)
#ENDIF
#SNIPPET("Pager", "ContextObjects", "{Transactions}")
#IF(#ShippingFulfillmentType AND #ShippingFulfillmentType.AdminURL)
{AdminURL}
#ENDIF