PRCPRPOS ;WISC/RFJ-posted stock report ;29 Jul 91
;;5.1;IFCAP;;Oct 20, 2000
;Per VHA Directive 10-93-142, this routine should not be modified.
D ^PRCPUSEL Q:'$G(PRCP("I"))
N %,PRCPSORT,PRCPINV,PRCPWARE,X I PRCP("DPTYPE")="W" W !?2,"START WITH NSN: FIRST// @ <<-- ENTER '@' TO PRINT ITEMS WITHOUT A NSN" S BY="[PRCP SORT:NSN]"
E W !?2,"START WITH GROUP CATEGORY CODE: FIRST// @ <<-- ENTER '@' TO PRINT ITEMS",!?51,"WITHOUT A GROUP CATEGORY CODE" S BY="[PRCP SORT:GROUP]"
S PRCPWARE=$O(^PRC(440,"AC","S",0))_";PRC(440,",DIC="^PRCP(445,",L=0,FLDS="[PRCP REPORT:POSTED STOCK]",DIS(0)="I D0=PRCP(""I"")",PRCPSORT="D SORT^PRCPRPOS",DIOEND="D END^PRCPUREP" D EN1^DIP Q
;
SORT ;sort lookup on mandatory source=warehouse
I '$D(PRCPWARE) S PRCPWARE=$O(^PRC(440,"AC","S",0))_";PRC(440,"
S %=$G(^PRCP(445,D0,1,D1,0)) I $P(%,"^",12)=PRCPWARE S X=D1 Q
S X="" Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCPRPOS 904 printed Dec 13, 2024@02:15:26 Page 2
PRCPRPOS ;WISC/RFJ-posted stock report ;29 Jul 91
+1 ;;5.1;IFCAP;;Oct 20, 2000
+2 ;Per VHA Directive 10-93-142, this routine should not be modified.
+3 DO ^PRCPUSEL
if '$GET(PRCP("I"))
QUIT
+4 NEW %,PRCPSORT,PRCPINV,PRCPWARE,X
IF PRCP("DPTYPE")="W"
WRITE !?2,"START WITH NSN: FIRST// @ <<-- ENTER '@' TO PRINT ITEMS WITHOUT A NSN"
SET BY="[PRCP SORT:NSN]"
+5 IF '$TEST
WRITE !?2,"START WITH GROUP CATEGORY CODE: FIRST// @ <<-- ENTER '@' TO PRINT ITEMS",!?51,"WITHOUT A GROUP CATEGORY CODE"
SET BY="[PRCP SORT:GROUP]"
+6 SET PRCPWARE=$ORDER(^PRC(440,"AC","S",0))_";PRC(440,"
SET DIC="^PRCP(445,"
SET L=0
SET FLDS="[PRCP REPORT:POSTED STOCK]"
SET DIS(0)="I D0=PRCP(""I"")"
SET PRCPSORT="D SORT^PRCPRPOS"
SET DIOEND="D END^PRCPUREP"
DO EN1^DIP
QUIT
+7 ;
SORT ;sort lookup on mandatory source=warehouse
+1 IF '$DATA(PRCPWARE)
SET PRCPWARE=$ORDER(^PRC(440,"AC","S",0))_";PRC(440,"
+2 SET %=$GET(^PRCP(445,D0,1,D1,0))
IF $PIECE(%,"^",12)=PRCPWARE
SET X=D1
QUIT
+3 SET X=""
QUIT