#IF(#Redirect) #ENDIF
#IF(#OBJECT_EXISTS AND #FormError)

{InputError}

{ObjectExists}
#ENDIF #IF(#FormError )

{InputError}

#IF(#FormErrors.Reason.UPS_EXPORT_FAILED) {UPSExportFailed} #ELSIF(#FormErrors.Reason.ReceiverNoCompany) {ReceiverNoCompany} #ELSIF(#FormErrors.Reason.ProductNoWeight) #LOOP(#FormErrors.Errors) {ProductNoWeight} #ENDLOOP #ELSIF(#FormErrors.Reason.IssuedIsSet) {AlreadyIssued} #ELSE {PleaseCorrectErrors} #ENDIF
#ENDIF #IF(NOT #DEFINED(#ShopAddress.Country))

{AddressError}

{NoOrderShopAddressCountry}

{SetShopAddress}
#ENDIF #IF(#AlreadyIssued)
#IF(#AlreadyIssued)

{InputError}

{AlreadyIssued} #ENDIF
#ENDIF

{PrintView} {DownloadAsPdfFile} {SendAsPdfFile}


#WITH_ERROR(#FormError) #ENDWITH_ERROR
#WITH(#Address) #ENDWITH
#FUNCTION("LocaleInclude", "Address", #Country.Code2)
#BLOCK("WITH_FORM_ERROR", #FormError) #ENDBLOCK #BLOCK("WITH_FORM_ERROR", #FormError) #ENDBLOCK #WITH(#Order) #IF(#Issued) #ELSE #BLOCK("WITH_FORM_ERROR", #FormError) #ENDBLOCK #ENDIF #IF(#Issued) #ELSE #BLOCK("WITH_FORM_ERROR", #FormError) #ENDBLOCK #ENDIF #ENDWITH #WITH(#LineItemContainer) #ENDWITH
{UPSPackingSlip}
{UPSTrackingNo} #IF(#Issued) #TrackingNo #ELSE #ENDIF
#IF(#DEFINED(#TrackingNo)) {UPSTrack} #ENDIF

{PackingSlipNumber} #IF(#Issued) #Alias #ELSE #ENDIF
{CustomerNoShort} #Customer.Alias
{PackingSlipDate} #IssueDate[date]  
{OrderDate} #CreationDate[date_tz]
{DeliveryDate} #DeliveryDate[date]
{ShippingMethod} #Shipping.ShippingMethod.NameOrAlias

#IF(#Issued) #INCLUDE("INC-PackingSlipInformationTable") #ELSE #INCLUDE("INC-EditPackingSlipInformationTable")

* {AlwaysInUseStarDescription}

#ENDIF
#IF(#Issued) {OrderDocumentComment}
#ELSE #SNIPPET("INC-WYSIWYG", "Name,InputName,Value,CssClass,Head,SavePage","Comment","Comment",#Comment,"FullWidth","{OrderDocumentComment}",0) #ENDIF

{WorldShip}



#IF(NOT #Issued) #WITH(#Shop)
{Formatting} {BubbleHelpFormatting}
#ENDWITH #ENDIF
#IF(NOT #Issued) #IF(NOT #DEFINED(#TrackingNo) AND #DEFINED(#ShopAddress.Country)) #ENDIF #ENDIF #IF(#INPUT.PopUp) #ENDIF