<>/+? 83"WHEOMACP- ACCESSORIAL INVOICE WEB VERSION- PRELIM ONLY3BEGIN ; GOTO 0031@@#R$D$JCONSuD,D.tpl1DFD,D vF$R$D$JBLHHsD,D.tpl1DFD,D tF&R$D$JBLACD,D.tpl1DFD,D F(R$D$JSBFIED,D.tpl1DFD,D GF,R$D$JCUSTD,D.tpl1DFD,D HF2R$D$AXINVID,D.tpl1DFD,D JF7$$/u/whp/tss/docs/packlistB.ps8#$/u/whp/tss/docs/CLGPACK2.ps9#$/u/whp/tss/docs/PACKPORT.ps<U$3write all ps commands into l$ it gets merged with the postscript form laterF)$!%%Insert The Overlay Stuff Here%%Pm$KCHAMPION LOGISTICS GROUPLWAREHOUSE DIVISIONM200 CHAMPION WAYNNORTHLAKE, IL 60164d7$k #,###,##0l #######.00-m #####.0000-$$,CCNVZ5 " '$CJ1MDF001201803'PDFBC'3MANAGE THE OUTPUT '%$$,O_CREATE,O_TRUNC'#3IF OUTFILE=0 THEN ADD TO OUTPUTTO$,$OC CCr>3LET TEXTERR$=TEXTERR$+"bol:"+BL$+" not found"+$0A$; GOTO 90003LET WATERMARK=0; IF POS("JBLHD"=FID(JBLHD)) THEN LET D1=NUM(D1$(3,1)),D1=D1+1,D1$(3,1)=STR(D1); WRITE (JBLHD,KEY=A1$)IOL=0040; IF D1>1 THEN LET WATERMARK=1$|+%$*)o** CONTINUED **@ ghij]d^dedfd $`Zd_(1C;>?@A%1ICO J $@p*PRELIM*$qC1q8$< C $q<A q5$ƠXNO AC INVOICE FOUND.Ud 3" MAIN LOGICL$j 2`)$ "! #2$2j $%&3items and qtyst$=<$z{F|}}ƴ~'$dJ|l1qv3detail4&1< C<>$rJ1@ H1srtM( 20@y@yOR1ut@wv\%$Q 20@y@yz7GETBOL1r $@@@@$S(@k$(@k $(@k(@k 3DETAIL 3start new page #$P@ R@@x ~$zPU${QU$|RU$}U +$~SU$U +$U$U  3GET THE CHARGES v #3--------- HANDLE THE CHARGE DETAIL >$PRE80WASSCXCr   H o gACODE:C(2),ADESC:C(27),AGL:C(6),ATYPE:C(3),ARATE:C(9),afill1:c(4), AQTY:C(9),ARATE1:C(10),ACHARGE:C(10) $PQ 3start new page *2$@U /+$@U$@U 4$$@U 9%$`@b@c@ ;$nnܨ@ > H3----- DISPLAY BOL TOTAL? 83----------- handle end of pageE$**Page ۩(* of {totalp}U$++gsave .8 setgray /Times-Bold findfont 50 scalefont setfont 200 380 moveto 30 rotate !(DO NOT PAY) true charpath stroke grestore $U3capture the header and footer  !*3test grid and font handling63dump page out$28<?3-------------- done with SUMMARY BILL ------------------------Px3subtotalsU $o3REMOVE ** CONTINUED **ZJ$dT O T A L C H A R G E SU_+$(n$ ####,###.00-Ua*$-./N0 Udn, !$' '{totalp}(*#(p13----------- generic PS format a line -----------)$( ۩( moveto %$(۫) show .83o3--------------------------- this section handles the text into the variable for the different fonts/attributes8U3Helvetica 8 Lp$8U3Helvetica 10 p$8U3Helvetica-Bold 12 p$Z8dU3COurier 10xp$,,8Up$8U3Helvetica 12 VERTICAL)$( ۩( moveto J$ 90 rotate (۫) show -90 rotate  $::"8,U3COURIER xx VERTICAL6)$( ۩( moveto @J$ 90 rotate (۫) show -90 rotate J $<<8U3create a barcode 39 D3sent x,y scale (1.0 or 1.2 or .8 ) rotate (0 90) height (inches)%3show$ should be the value to barcode7$5gsave ۩(- ۩(. moveto 7 6,$55۩(6 ۩(6 scale + 7 $55۩(7 rotate m$55() (9 height=۩(84) /code39 /uk.co.terryburton.bwipp findresource exec $55grestore  $++58FU3create a postscript box (x,y) is bottom left, x1,y1 is top right 1 $11.0S$21 setlinewidth 37 550 newpath moveto 575 550 lineto Z$22۩(- ۩(. newpath moveto ۩(/ ۩(. lineto -$22۩(/ ۩(0 lineto -$22۩(- ۩(0 lineto &-$22۩(- ۩(. lineto :)$22 0 setgray stroke D $++2N8U 3Helvetica 10 VERTICAL)$( ۩( moveto J$ 90 rotate (۫) show -90 rotate  $BB 8x3print the subtotals} Z( 3handle widow/orphanC$$dS U B T O T A L SU3Z($[Z3('( ]3 $ Subtotal: U$[U$(^3kU$(]3 ####,###.00-U $\\*3$Z$_83------ DO SUBTOTTALLING$``۩d``(0$a`Z( a$ZZ`$aa'( ad$ad$]a]ab$^a^ac$dd۩ddd "0$ad_ a$__d"'$aa ,"3IF TOTPOS>100 THEN LET TOTPOS=1001,$eaeabfafac68@3J=$(ERROR ۩(Ө AT LINE ۩(Ө" IN ۩#TE2#( 3" EXIT POINT#*su#-EI#. #/#2'*-311000 "GENERATE TEST GRID and COMPOSE THE L$+ $$/Helvetica 8 selectfont +* d+4 d+9W$۩( ۩( moveto  (۩(,۩() show +> **+\$+p8 ,$/Helvetica 8 selectfont +z9 -$/Helvetica 10 selectfont +~6 ,*$/Courier 8 selectfont ,+; /$/Courier-Bold 8 selectfont +> 2$/Helvetica-Bold 12 selectfont +9 :-$/Helvetica 12 selectfont :+9 B-$/Helvetica 10 selectfont B+6 <*$/Courier 8 selectfont <,~863" WRITE DATA TO OUTPUT 6($$,1 '6$ 6 $ 66($  +4 6F3IF POS(">"=OUTPUTTO$) THEN PRINT (OUTFILE)'BO',PS1$,'EO',; GOTO 140506 $'' 76 L 7$ 7@$,:B<+7 8:3^1000 outta here: 3functions:  :0$ ( $ [::0$ ) $ ]::8 :]:$j::N %3---- charges record with blank linesNHo$(------ Charge ------U$ -- QTY --U$ -- Notes --UN\a3ƴ<$(31_______________________________ ____________U*3Nz8U43---------------- create header/footer for each pageW>$ Print Date: ۩ %Mz/%Dz/%YUW)$2 A C C O U N TUW-$-2./-0.U3LINEW$2UW$>UX$?UX $@ AUX^$ Reference : @p - q# ***Do not pay - reference only **UX"$ Period : OUX.$hW A R E H O U S EUX.$-h./-0.U3LINEXH $hKUXR$ LUX\$ MUXf$ NUXz3LINESPS$=LINESPS$+"[3] 0 setdash"+$0A$+"1.0 setlinewidth"+$0A$+"20 253 newpath moveto"+$0A$+"590 253 lineto"+$0A$+"0 setgray"+$0A$+"stroke"+$0A$+"[] 0 setdash"+$0A$X#$-./N0UX&3X=20,Y=273,X1=590,Y1=770; GOSUB DOBOXXd$++/Helvetica 22 selectfont 175 750 moveto (ACCESSORIAL DOCUMENT) show X$z vBOL#U${DateU$| Storer Ref#U$} ConsigneeU$~ $PiecesU$ WeightU$ PalletsU$LinesUX$l DescriptionU$QtyU$RateU$ChargeUX$$-.j/N0UXp3LET LINESPS$=LINESPS$+"/Helvetica 18 selectfont"+$0A$+"80 215 moveto"+$0A$+"(CHAMPION BOL:"+A1$+" ) show"+$0A$X$oUX0$( Customer: CUY 3barcodesYm3LET SHOW$=CVS("12345678",3),X=580,Y=70,SCALE=.8,ROTATE=90,HEIGHT=.4,BAROPTS$="includetext "; GOSUB DOBARCODEY8|  Ć  ĚĐ/$ / / Ě8 Ĥ]Į  ĸ$ " ",8 ] TUV( U$U, ۩U5$ T۩U ۩V 8 ] WX $YW Y($ YX YܨW8 ]TPSFILELOUTFILE TESTGRIDIIJJPSCHANPSPPPPS1LCOPYYYYYYJJJDOCOLDOROWSHOWJCUSTCCNVZJQFB3LLLH8LH10LH12B STARTROWRRMAXROWROWNNCNNP9NNLNNPNNWIIIQQQ OUTPUTTOERRMSG1TOTALPPAGELINESPSLC10XYX1Y1 LINEWIDTHMYBOXIOFF__TESTGRIDMYBARSCALEROTATEHEIGHTBAROPTSLH12VA3LCVRADC3D3E3F3LH10VJKEYFJSBFITPLJSBFIJCUSTAXINVAXINVRT1RT2RT3RT4DOPERX1X2X3X5YYCYYSYYZYYY1YYY2YYYTOTSDESCLTOTSTOTPBTOTSDOTOTTOTPOSDOTOTDOPALBDOTOTBTOTSBTOTP HANDLINGB415TH AFTER15THENDBALMM1M2PAYTOT PAGEFOOTER AXINV.INVACINVBLKEYJBLHHJBLHHJCONSJCONS JBLHH.CONS JCONS.CONSIGEE_NAME JBLHH.DELDCOL1COL2COL3COL4COL5COL6COL7COL8X6X4X7X8CTEXTWAMTCCLC8B CC.ACHARGEACOL1 CC.ADESCACOL2 CC.AQTYACOL3 CC.ARATEACOL4ACOL5KACJBLACJBLAC JBLAC.KAC JBLAC.PCS JBLAC.WGT JBLAC.PLTS JBLAC.LINES JBLAC.STREFHDDTOTHER1OTHER2OTHER3TPCSTWGTTPLTSTLINESDDATECLEANLH8LH10LH12BLC10DOBOX DOBARCODELH12VLCVLH10VD1XLCSZSUBLC8Bb