source: FOIAVistA/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCHCARD.m@ 761

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

initial load of FOIAVistA 6/30/08 version

File size: 967 bytes
Line 
1PRCHCARD ;WISC/AKS-Purchase Card Reconciliation Report ;
2 ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 N PRCHFR,PRCHTO,FR,TO,L,DIC,BY,FLDS,Y,FROM,LASTTO,DIS,PRCF
5 S PRCF("X")="S" D ^PRCFSITE Q:'$D(PRC("SITE"))
6 S DIR(0)="F",DIR("?")="This is the valid Fund Control Point."
7 S DIR("A")="START WITH FCP",DIR("B")="FIRST" D ^DIR Q:X["^"
8 S (FROM,PRCHFR)=Y I Y?1.N S PRCHFR=Y_" "
9 I Y="FIRST" S PRCHFR="" K DIR,X
10 S (PRCHTO,LASTTO)="" I $G(Y)'="FIRST" D LAST Q:X["^"
11PRINT I FROM]LASTTO S PRCHTO=LASTTO
12 S FR=PRCHFR_",?,?",TO=PRCHTO_",?,?"
13 S L=0,DIC=442,BY="[PRCH CREDIT SORT]"
14 S DIS(0)="I $P(^PRC(442,D0,0),U,2)=25"
15 S FLDS="[PRCH CARD PRINT" D EN1^DIP
16 I PRCHFR]"",PRCHTO]"",FROM]LASTTO D LAST Q:X["^" G PRINT
17 QUIT
18LAST S DIR(0)="F",DIR("?")="This is the valid Fund Control Point."
19 S DIR("A")="GO TO FCP",DIR("B")="LAST" D ^DIR Q:X["^"
20 S (LASTTO,PRCHTO)=Y
21 I Y?1.N S PRCHTO=Y_"z"
22 I Y="LAST" S PRCHTO="" K DIR
23 Q
Note: See TracBrowser for help on using the repository browser.