source: FOIAVistA/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCFDPVI.m@ 1397

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

initial load of FOIAVistA 6/30/08 version

File size: 1.7 KB
Line 
1PRCFDPVI ;WISC/LEM-PAYMENT ERROR PROCESSING INQUIRY ;6/13/94 10:34 AM
2 ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4V ;
5 QUIT
6 ; No top level entry
7TYPE(X) N FMSNO,STATUS,STATTXT1,FMSTYPE
8 S PRC("SITE")=$P(X,U),FMSTYPE=$P(X,U,2)
9 I ("^PV^MO^SO^"'[("^"_FMSTYPE_"^")) D MSG1^PRCFDPVM,OUT Q
10 D STAT,NUM^PRCFDPVU,GET^PRCFDPVU(421.5,PONUM) I Y<0 D MSG2^PRCFDPVM Q
11 ;STOP HERE TO CHECK VARIABLES
12 S PRCF("CIDA")=+Y
13 ;K MOP S MOP=$P(Y(0),U,2) I MOP="" D MSG3^PRCFDPVM Q
14 ;I MOP=1!(MOP=2)!(MOP=8) I PRCFA("ERROR") D TPO
15 ;I MOP=21 I PRCFA("ERROR") D T1358
16 I PRCFA("ERROR") D TPO
17 D SCREEN
18 Q
19 ;
20STAT S STATUS=GECSDATA(2100.1,GECSDATA,3,"E") D
21 .I $E(STATUS,1)="T" D STATT^PRCFDPV1 Q
22 .I $E(STATUS,1)="Q" D STATQ^PRCFDPV1 Q
23 .I $E(STATUS,1)="M" D STATM^PRCFDPV1 Q
24 .I $E(STATUS,1)="E" D STATE^PRCFDPV1 Q
25 .I $E(STATUS,1)="A" D STATA^PRCFDPV1 Q
26 .I $E(STATUS,1)="R" D STATR^PRCFDPV1 Q
27 Q
28 ;
29TPO ; Payment Voucher Error Processing
30 ; When MOP = Invoice/Rec Rep, Certified Invoice, Requisition
31 S D0=+Y D STATR1^PRCFDPV1 D ;,VIEW^PRCFDCI1 ;^PRCHDP1
32 . S DIC=421.5 ;,DIC(0)="AEMNZ" D ^DIC G OUTV:Y<0
33 . S (FR,TO)=$P(Y,"^",2),L=0,BY="@.01;",FLDS="[CAPTIONED]",IOP="HOME"
34 . S PRCF("VIEW")="" D WAIT^PRCFYN,EN1^DIP ;,OUTV G VIEW
35 . D PAUSE^PRCFDPVU
36 . Q
37OUTV ;K DIC,DA,DR,PRCF,X,Y Q
38 Q
39T1358 ; 1358 Error Processing
40 ; When MOP = MISC OBL(1358)
41 D STATR1^PRCFDPV1
42 S PO(0)=Y(0)
43 D GENDIQ^PRCFFU7(442,+POIEN,".07","I","")
44 S DA=PRCTMP(442,+POIEN,.07,"I") D NODE^PRCS58OB(DA,.TRNODE)
45 I '$D(PRC("CP")) S PRC("CP")=$P(TRNODE(0),"-",4)
46 S IOP="HOME" D ^%ZIS,^PRCE58P0
47 Q
48OUT K GECSDATA,FMSTYPE,FMSNO,STATUS,DIC
49 Q
50SCREEN ; Control screen display
51 I $D(IOF) W @IOF
52HDR ; Write Option Header
53 I $D(XQY0) W IOINHI,$P(XQY0,U,2),IOINORM
54 Q
Note: See TracBrowser for help on using the repository browser.