source: FOIAVistA/trunk/r/FEE_BASIS-FB/FBCHDI2.m@ 949

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

initial load of FOIAVistA 6/30/08 version

File size: 1.1 KB
Line 
1FBCHDI2 ;AISC/DMK-DISPLAY INVOICE ;08FEB89
2 ;;3.5;FEE BASIS;;JAN 30, 1995
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4ASKIN K FBAANQ W !! S DIC="^FBAAI(",DIC(0)="AEQM" D ^DIC G END:X="^"!(X=""),ASKIN:Y<0 S FBI=+Y
5 S VAR="FBI",VAL=FBI,PGM="START^FBCHDI2" D ZIS^FBAAUTL G:FBPOP END S:IO=IO(0) FBAANQ=1
6START S Q="",$P(Q,"=",80)="=",FBAAOUT=0,FBPG=$S($E(IOST,1,2)="C-":0,1:1)
7 U IO D HEDC^FBCHVH
8EN D GETINV^FBCHVH Q:FBAAOUT
9 F J=5,16,17 S FBIN(J)=$P(FBIN,"^",J)
10 S Y=FBIN(16) D PDF^FBAAUTL S FBIN(16)=Y S:$P(FBIN(5),";",2)="FB583(" FBIN(5)="" I FBIN(5)]"" S FBIN(5)=$S($D(^FB7078(+FBIN(5),0)):$P(^(0),"^",1),1:"")
11 I FBIN(17)]"" S FBIN(17)=$S($D(^FBAA(161.7,FBIN(17),0)):$P(^(0),"^",1),1:"")
12 I FBIN(5)]"" W !,?4,"Associated 7078: ",FBIN(5)
13 W !,?4,"Batch #: ",FBIN(17),?40,"Date Finalized: ",FBIN(16),!
14 I $D(^FBAAI(FBI,"FBREJ")),$P(^("FBREJ"),"^",1)]"" W ?4,"Rejects Pending!",?25,"Reject reason: ",$P(^("FBREJ"),"^",2),!,?4,"Old Batch #: ",$S($P(^("FBREJ"),"^",3):$S($D(^FBAA(161.7,$P(^("FBREJ"),"^",3),0)):$P(^(0),"^"),1:""),1:"")
15 Q:$D(FBLISTC)
16 G:$D(FBAANQ) ASKIN
17END K VA D END^FBCHVH Q
Note: See TracBrowser for help on using the repository browser.