ABPACLG9 ;CHECK LOG MODIFICATIONS REPORT; [ 03/29/91 12:00 PM ]
;;1.4;AO PVT-INS TRACKING;*0*;IHS-OKC/KJR;JULY 25, 1991
W !!,"NOT AN ENTRY POINT - ACCESS DENIED",!! Q
;--------------------------------------------------------------------
TXFERS ;PROCEDURE TO PROCESS TRANSFER NODES
S R=0 F I=0:0 D Q:R=""
.S R=$O(^TMP("ABPACLG1","T",R)) Q:R=""
.S RR=0 F J=0:0 D Q:RR=""
..S RR=$O(^TMP("ABPACLG1","T",R,RR)) Q:RR=""
..S R3=0 F K=0:0 D Q:R3=""
...S R3=$O(^TMP("ABPACLG1","T",R,RR,R3)) Q:R3=""
...S R4=0 F L=0:0 D Q:R4=""
....S R4=$O(^TMP("ABPACLG1","T",R,RR,R3,R4)) Q:R4=""
....S R5=0 F M=0:0 D Q:R5=""
.....S R5=$O(^TMP("ABPACLG1","T",R,RR,R3,R4,R5)) Q:R5=""
.....S R6=0 F N=0:0 D Q:R6=""
......S R6=$O(^TMP("ABPACLG1","T",R,RR,R3,R4,R5,R6)) Q:R6=""
......S Y=^(R6),Y=+$E(Y,4,5)_"/"_+$E(Y,6,7)_"/"_+$E(Y,2,3)
......S ABPACHK("XMIT")=Y,ABPAINS=$P(^AUTNINS(R3,0),"^")
......S FROM=$P(^DIC(4,R4,0),"^"),TO=$P(^DIC(4,R5,0),"^")
......S TCNT=TCNT+1 W !!,$J(TCNT,2),".",?4,"It is requested "
......W "that $",$J(R,8,2)," of check number ",RR," from ",!?4
......W ABPAINS," be transferred from accounting point",!?4
......W FROM," to ",TO,".",!?4
......W !?4,"This was originally submitted on the transmittal "
......W "dated ",ABPACHK("XMIT"),"."
......I $Y>46 D ^%AUCLS,HD^ABPACLG4
Q
ABPACLG9 ;CHECK LOG MODIFICATIONS REPORT; [ 03/29/91 12:00 PM ]
+1 ;;1.4;AO PVT-INS TRACKING;*0*;IHS-OKC/KJR;JULY 25, 1991
+2 WRITE !!,"NOT AN ENTRY POINT - ACCESS DENIED",!!
QUIT
+3 ;--------------------------------------------------------------------
TXFERS ;PROCEDURE TO PROCESS TRANSFER NODES
+1 SET R=0
FOR I=0:0
Begin DoDot:1
+2 SET R=$ORDER(^TMP("ABPACLG1","T",R))
IF R=""
QUIT
+3 SET RR=0
FOR J=0:0
Begin DoDot:2
+4 SET RR=$ORDER(^TMP("ABPACLG1","T",R,RR))
IF RR=""
QUIT
+5 SET R3=0
FOR K=0:0
Begin DoDot:3
+6 SET R3=$ORDER(^TMP("ABPACLG1","T",R,RR,R3))
IF R3=""
QUIT
+7 SET R4=0
FOR L=0:0
Begin DoDot:4
+8 SET R4=$ORDER(^TMP("ABPACLG1","T",R,RR,R3,R4))
IF R4=""
QUIT
+9 SET R5=0
FOR M=0:0
Begin DoDot:5
+10 SET R5=$ORDER(^TMP("ABPACLG1","T",R,RR,R3,R4,R5))
IF R5=""
QUIT
+11 SET R6=0
FOR N=0:0
Begin DoDot:6
+12 SET R6=$ORDER(^TMP("ABPACLG1","T",R,RR,R3,R4,R5,R6))
IF R6=""
QUIT
+13 SET Y=^(R6)
SET Y=+$EXTRACT(Y,4,5)_"/"_+$EXTRACT(Y,6,7)_"/"_+$EXTRACT(Y,2,3)
+14 SET ABPACHK("XMIT")=Y
SET ABPAINS=$PIECE(^AUTNINS(R3,0),"^")
+15 SET FROM=$PIECE(^DIC(4,R4,0),"^")
SET TO=$PIECE(^DIC(4,R5,0),"^")
+16 SET TCNT=TCNT+1
WRITE !!,$JUSTIFY(TCNT,2),".",?4,"It is requested "
+17 WRITE "that $",$JUSTIFY(R,8,2)," of check number ",RR," from ",!?4
+18 WRITE ABPAINS," be transferred from accounting point",!?4
+19 WRITE FROM," to ",TO,".",!?4
+20 WRITE !?4,"This was originally submitted on the transmittal "
+21 WRITE "dated ",ABPACHK("XMIT"),"."
+22 IF $Y>46
DO ^%AUCLS
DO HD^ABPACLG4
End DoDot:6
IF R6=""
QUIT
End DoDot:5
IF R5=""
QUIT
End DoDot:4
IF R4=""
QUIT
End DoDot:3
IF R3=""
QUIT
End DoDot:2
IF RR=""
QUIT
End DoDot:1
IF R=""
QUIT
+23 QUIT