#INCLUDE("INC-OrderDocumentPrintStyles")
#LOCAL("FirstPage", 1)
#INCLUDE("INC-PrintButton")
#IF(#DEFINED(#Orders))
#LOOP(#Orders)
#IF(NOT #FirstPage)
#ELSE#SET("FirstPage", 0)#ENDIF
#IF(#DEFINED(#PackingSlip))
#PackingSlip[decodehtml]
#ENDIF
#IF(NOT #FirstPage AND (#DEFINED(#PackingSlip) AND #DEFINED(#Invoice)))
#ELSE#SET("FirstPage", 0)#ENDIF
#IF(#DEFINED(#Invoice))
#Invoice[decodehtml]
#ENDIF
#ENDLOOP
#ENDIF
#ENDLOCAL