source: FOIAVistA/tag/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCPRPOS.m@ 1068

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

initial load of FOIAVistA 6/30/08 version

File size: 892 bytes
Line 
1PRCPRPOS ;WISC/RFJ-posted stock report ;29 Jul 91
2 ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 D ^PRCPUSEL Q:'$G(PRCP("I"))
5 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]"
6 E W !?2,"START WITH GROUP CATEGORY CODE: FIRST// @ <<-- ENTER '@' TO PRINT ITEMS",!?51,"WITHOUT A GROUP CATEGORY CODE" S BY="[PRCP SORT:GROUP]"
7 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
8 ;
9SORT ;sort lookup on mandatory source=warehouse
10 I '$D(PRCPWARE) S PRCPWARE=$O(^PRC(440,"AC","S",0))_";PRC(440,"
11 S %=$G(^PRCP(445,D0,1,D1,0)) I $P(%,"^",12)=PRCPWARE S X=D1 Q
12 S X="" Q
Note: See TracBrowser for help on using the repository browser.