source: FOIAVistA/trunk/r/AUTO_REPLENISHMENT_WARD_STOCK-PSGW/PSGWPI.m@ 1757

Last change on this file since 1757 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.3 KB
Line 
1PSGWPI ;BHAM ISC/MPH,CML-Print AOU Inventory Sheet ; 14 Feb 1989 2:08 PM
2 ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
3 I '$D(PSGWSITE) D ^PSGWSET Q:'$D(PSGWSITE) S PSGWFLG=1
4 W !,"Right margin for this printout is 132!",!! S PSGWDT=DT I '$D(PSGWIDA) S DIC="^PSI(58.19,",DIC(0)="QEAMZ" D ^DIC K DIC G:Y<0 KILL S PSGWIDA=+Y
5DEV K %ZIS,IOP S %ZIS="QM",%ZIS("B")="" D ^%ZIS I POP W !,"NO DEVICE SELECTED OR REPORT PRINTED!" G KILL
6 I $D(BARFLG),'$D(^%ZIS(2,^%ZIS(1,IOS,"SUBTYPE"),"BAR0"))!('$D(^%ZIS(2,^%ZIS(1,IOS,"SUBTYPE"),"BAR1"))) W *7,!!,"THE DEVICE YOU HAVE SELECTED IS NOT SET UP TO PRINT BAR CODES!!",! G DEV
7 I $D(IO("Q")) K IO("Q") S ZTRTN="EN1^PSGWPI",ZTDESC=$S($D(BARFLG):"Print Bar Coded Inventory Sheet",1:"Print Inventory Sheet") F G="PSGWIDA","PSGWDT","PSGWSITE","BARFLG" S:$D(G) ZTSAVE(G)=""
8 I D ^%ZTLOAD,HOME^%ZIS K ZTSK G KILL
9EN1 U IO D EN1^PSGWPI1
10KILL K PSGW("PO"),PSG1,PSG2,PSG3,PSGDA,PSGDDA,PSGDR,PSGINAD,PSGNT,PSGPAGE,PSGSORTK,STKCHG,PSGTN,PSGTODAY,PSGWIDA,PSGWIN,PSGWN,PSGTYP,PSGWGRP,PSGWLP,PSGWPC,PSGD,PSGISORT,PSGLSORT,PSGSORT,PSGT,PSGW,PSGWDUP,PSGWN,PSGWPGD,PSI,PSGWDT,DIE,DR
11 K CHK,GROUP,ZTSK,BARFLG,PSGWBARS,PSGWBAR0,PSGWBAR1,I,LOC,STLEV,DRGDA,J,K,G,K1,EXP,LN,LN1,LN2,LNCNT,TAB1,TAB2,TYPE,Q,LFC,SK,X,Y,MH,NN,AA,D1,DA,PSGSW,SKK,GRP,LP,PC,IO("Q") D ^%ZISC
12 K:$D(PSGWFLG) PSGWFLG,PSGWSITE
13 S:$D(ZTQUEUED) ZTREQ="@" Q
Note: See TracBrowser for help on using the repository browser.