source: FOIAVistA/trunk/r/ACCOUNTS_RECEIVABLE-PRCA-PRY-RC/PRCARFU.m@ 1783

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

initial load of FOIAVistA 6/30/08 version

File size: 863 bytes
Line 
1PRCARFU ;WASH-ISC@ALTOONA,PA/CMS-PREPAYMENT UTILITY ;5/28/93 12:59 PM
2V ;;4.5;Accounts Receivable;**104,107,153**;Mar 20, 1995
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4EN(BN) ;If no activity or deceased change to Refund Review
5 N DAT,DFN,EDAT,LDAT,PRCAPER,TR,VA,VADM,VAERR,X,Y,%DT
6 S DFN=$G(^RCD(340,$P(^PRCA(430,BN,0),U,9),0)) G ENQ1:DFN'[";DPT" S DFN=+DFN
7 I $P(^PRCA(430,BN,0),U,2)'=$O(^PRCA(430.2,"AC",33,0)) G ENQ1
8 D DEM^VADPT G ENQ0:VAERR I +$G(VADM(6)) D RR^PRCARFD(BN) G ENQ0
9 I +$G(^PRCA(430,BN,7))<1 G ENQ1
10 S X="T-60",%DT="" D ^%DT S EDAT=Y
11 S X="T-365",%DT="" D ^%DT S LDAT=Y,DAT=0
12 F TR=0:0 S TR=$O(^PRCA(433,"C",BN,TR)) Q:'TR S:+$G(^PRCA(433,TR,1))>DAT DAT=+$G(^PRCA(433,TR,1))
13 I DAT'>EDAT,+$G(^PRCA(430,BN,7))>25 D RR^PRCARFD(BN) G ENQ0
14 I DAT'>LDAT,+$G(^PRCA(430,BN,7))'<1 D RR^PRCARFD(BN) G ENQ0
15ENQ1 Q 1
16ENQ0 Q 0
Note: See TracBrowser for help on using the repository browser.