source: WorldVistAEHR/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCE58P1.m@ 1710

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

initial load of WorldVistAEHR

File size: 3.5 KB
RevLine 
[613]1PRCE58P1 ;WISC/SAW,LDB/BGJ-CONTROL POINT ACTIVITY 1358 DISPLAY CON'T ;7/23/92 9:51 AM
2V ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 S Z=$S($D(PRCSPO):PRC("SITE")_"-"_PRCSPO,1:0)
5I I 'Z!('$D(^PRC(424,"AD",Z))) W !,"Daily Record entries have not yet been entered for this request.",!,"The total committed cost of this request is $" W:$D(TRNODE(4)) $J($P(TRNODE(4),U),0,2) W !,L G P
6 D HDR1 S PRCSX=0 D OB S (ET,AT,UT)="" D PO1 Q:Z3=U
7 W !!,?7,"TOTALS",?29,"$"
8 ;Display of dollar amounts staggered if any amount $1 million or more
9 D
10 . I ET>999999.99!(AT>999999.99)!(CET>999999.99) D Q
11 . . W $J(ET,9,2),?51,"$",$J(CET,9,2),?69,"$",$J((PRCSOT-UT),9,2) W !,?40,"$",$J(AT,9,2)
12 . W $J(ET,9,2),?40,"$",$J(AT,9,2),?51,"$",$J(CET,9,2),?69,"$",$J((PRCSOT-UT),9,2)
13 K PRCSX,PRCSOT,UT,CT,AT,ET,CAT,CET,PRCSR,PRCSX,PRCSXX,J,JJ
14 D P
15 Q
16OB ;DISPLAY ONLY OBLIGATIONS
17 I '$D(^PRC(424,"AD",Z)) G OB1
18 S (PRCSOT,X1,UT)="" F S X1=$O(^PRC(424,"AF",Z,X1)) Q:X1'>0 I $D(^PRC(424,X1,0)) S Z1=^(0),PRCSOT=PRCSOT+$P(Z1,U,6) X "I IOSL-$Y<5 D HOLD^PRCE58P0 Q:Z3=U D NEWP^PRCE58P0,HDR1" D DR1
19 W !,L Q:$D(PRCSX)
20OB1 W !!,"The following 1358 obligation/adjustment request is ready for processing:"
21 S X=$P(TRNODE(0),U,1,2) W !,"TRANSACTION NUMBER: ",$P(X,U),?40,"TYPE: ",$S($P(X,U,2)="O":"OBLIGATION",1:"ADJUSTMENT"),?50,"AMOUNT: $",$J($P(TRNODE(4),U,8),0,2) W !,L G P
22PO1 I $D(TRNODE(10)) S PRCSY=$P(TRNODE(10),U,3) I PRCSY K PO D PO^PRCH58OB(PRCSY,.PO) D:$D(PO(0)) PO11
23 Q
24PO11 K ^TMP("PRCSR",$J) D HDR S CET=0 F S PRCSX=$O(^PRC(424,"C",PRCSY,PRCSX)) Q:'PRCSX D
25 . I $D(^PRC(424,PRCSX,0)),"^AU^L^"[("^"_$P(^(0),U,3)_"^") S Z1=^(0) I Z1 S ^TMP("PRCSR",$J,$P($P(Z1,U),"-",3),PRCSX)=Z1
26 S PRCSXX="" F S PRCSXX=$O(^TMP("PRCSR",$J,PRCSXX)) Q:PRCSXX="" S (A,E)=0 D PO12 Q:Z3=U
27 K ^TMP("PRCSR",$J) Q
28PO12 S PRCSX=0 F S PRCSX=$O(^TMP("PRCSR",$J,PRCSXX,PRCSX)) Q:PRCSX'>0 S Z1=^TMP("PRCSR",$J,PRCSXX,PRCSX),Y=$P(Z1,U,7) D T X "I IOSL-$Y<3 D HOLD^PRCE58P0 Q:Z3=U D NEWP^PRCE58P0,HDR" D PO2 Q:Z3=U
29 K A,E Q
30PO2 W !,Y,?7,PRCSXX,?12,$P(Z1,U,10),?29,"$"
31 S E=$P(Z1,U,12),A=$P(Z1,U,5),UT=UT+$P(Z1,U,4),AT=AT+A,ET=ET+E,CET=CET+E
32 ;Display of dollar amounts staggered if any amount $1 million or more
33 D
34 . I E>999999.99!(A>999999.99)!(CET>999999.99)!(Z1>999999.99) D Q
35 . . W $J(E,9,2),?51,"$",$J(CET,9,2) W ! W:$D(PRCSA) ?12,$G(^PRC(424,PRCSX,1)) W ?40,"$",$J(A,9,2),?62,"$",$J($P(Z1,U,4),9,2)
36 . W $J(E,9,2),?40,"$",$J(A,9,2),?51,"$",$J(CET,9,2),?62,"$",$J($P(Z1,U,4),9,2) I $D(PRCSA) W !,?12,$G(^PRC(424,PRCSX,1))
37 I $D(^PRC(424.1,"C",PRCSX)),$G(PRCSA1)=1 S I=0 F S I=$O(^PRC(424.1,"C",PRCSX,I)) Q:'I I $D(^PRC(424.1,I,0)),$P(^(0),U,11)="P" D Q:Z3=U W !
38 . W ! I IOSL-$Y<5 D HOLD^PRCE58P0 Q:Z3=U D NEWP^PRCE58P0,HDR
39 . W ! S Y=$P(^(0),U,4) D T W Y,?7,$P($P(^(0),U),"-",3,4) W !,?12,$P(^(0),U,8),?29,"$",$J(($P(^(0),U,3)/-1),9,2)
40 . I IOSL-$Y<5 D HOLD^PRCE58P0 Q:Z3=U D NEWP^PRCE58P0,HDR
41 . I PRCSA2=1,$D(^PRC(424.1,I,1)) W !,?12,^(1)
42 Q
43P W:Z3'=U !!,"VA FORM 4-1358a-ADP (NOV 1987)",! Q
44DR1 S Y=$P(Z1,U,7) D T W !,Y,?7,$P($P(Z1,U),"-",3)
45 S DA=$P(Z1,U,15) I DA D NODE^PRCS58OB(DA,.TRNODE) W ?13,$P(TRNODE(0),U)
46 W ?36,"$",$J($P(Z1,U,6),9,2) W:$D(PRCSX) ?56,"$",$J(PRCSOT,9,2) Q
47HDR W !,"AUTHORIZATION & ORDER RECORD",?62,"LIQUIDATION RECORD"
48 W !!,?30,"AUTH.",?41,"AUTH.",?53,"CUMULATIVE",?74,"UNLIQ",!,"DATE",?7,"SEQ#",?14,"REFERENCE",?30,"AMOUNT",?41,"BALANCE",?53,"AUTH. AMT.",?64,"LIQUID",?74,"BAL" W !,L Q
49HDR1 W !,"ESTIMATED OBLIGATION RECAP",!,"DATE",?7,"REF#",?13,"CPA#",?37,"AMOUNT",?57,"BALANCE" Q
50T S Y=$E(Y,4,5)_"/"_$E(Y,6,7) Q
Note: See TracBrowser for help on using the repository browser.