Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ACRFPAA

ACRFPAA.m

Go to the documentation of this file.
  1. ACRFPAA ;IHS/OIRM/DSD/THL,AEF - PRINT ADVICE OF ALLOWANCE; [ 11/01/2001 9:44 AM ]
  1. ;;2.1;ADMIN RESOURCE MGT SYSTEM;;NOV 05, 2001
  1. ;;ROUTINE TO PRINT ADVICE OF ALLOWANCE
  1. EN D EN1
  1. EXIT K ^TMP("SSA",$J),ACRO1,ACRO2,ACRO3,ACRO4,ACRQ1,ACRO1,ACRI1,ACRD1,ACRQ2,ACRO2,ACRI2,ACRD2,ACRQ3,ACRO3,ACRI3,ACRD3,ACRQ4,ACRO4,ACRI4,ACRD4,ACRGTOT,ACRQ1,ACRQ2,ACRQ3,ACRQ4,ACRTI,ACRI1,ACRI2,ACRI3,ACRI4,ACRTD,ACRD1,ACRD2
  1. K ACRD3,ACRD4,ACRFY,ACRSSANO,ACRTOT,ACRREC,ACRNREC,ACRSSA,ACRREC,ACRNREC,ACRTOT,ACRRTOT,ACRNTOT,ACRSSA,ACRX,ACRI,ACRALW,ACRAMDNO,ACRTODAY,ACRTO,ACRSTRET,ACRCITY,ACRSTATE,ACRZIP,ACRAPP,ACRAPPNO,ACRAPT,ACRBA,ACRBANO
  1. W @IOF
  1. Q
  1. EN1 S ACRX="HEADQUARTERS FINANCE"
  1. W !?80-$L(ACRX)\2,ACRX
  1. W !
  1. F ACRI=1:1:79 W "-"
  1. W !,"TO:"
  1. W ?40,"ALLOWANCE"
  1. W ?52,"AMENDMENT"
  1. W ?63,"DATE"
  1. W !,"DIRECTOR"
  1. W ?40,$E(ACRFY,2),"-",ACRALW
  1. W ?56,ACRAMDNO
  1. W ?63,ACRTODAY
  1. W !,ACRTO
  1. W ?40
  1. F ACRI=1:1:39 W "-"
  1. W !,ACRSTRET
  1. W ?40,"ALLOTMENT NO."
  1. W !,ACRCITY,", ",ACRSTATE," ",ACRZIP
  1. W ?42,ACRALW
  1. W !?40
  1. F ACRI=1:1:39 W "-"
  1. W !?40,"APPROPRIATION SYMBOL"
  1. W !?42,ACRAPP
  1. W !?40
  1. F ACRI=1:1:39 W "-"
  1. W !?40,"ACTIVITY"
  1. W ?65,"ACC'T POINT"
  1. W !?40,ACRBA
  1. W ?67,ACRAPT
  1. W !
  1. F ACRI=1:1:79 W "-"
  1. W !?19,"FIRST"
  1. W ?32,"SECOND"
  1. W ?45,"THIRD"
  1. W ?59,"FOURTH"
  1. W !?19,"QUARTER"
  1. W ?32,"QUARTER"
  1. W ?45,"QUARTER"
  1. W ?59,"QUARTER"
  1. W ?71,"TOTAL"
  1. W !
  1. F ACRI=1:1:79 W "-"
  1. W !,"ORIGINAL"
  1. S ACRTO=ACRO1+ACRO2+ACRO3+ACRO4,ACRQ1=ACRO1+ACRI1+ACRD1,ACRQ2=ACRO2+ACRI2+ACRD2,ACRQ3=ACRO3+ACRI3+ACRD3,ACRQ4=ACRO4+ACRI4+ACRD4,ACRGTOT=ACRQ1+ACRQ2+ACRQ3+ACRQ4,ACRTI=ACRI1+ACRI2+ACRI3+ACRI4,ACRTD=ACRD1+ACRD2+ACRD3+ACRD4
  1. W !,"ALLOWANCE"
  1. W ?15,$J(ACRO1,11)
  1. W ?28,$J(ACRO2,11)
  1. W ?41,$J(ACRO3,11)
  1. W ?54,$J(ACRO4,11)
  1. W ?67,$J(ACRTO,11)
  1. W !
  1. F ACRI=1:1:79 W "-"
  1. W !!,"INCREASE"
  1. W ?15,$J(ACRI1,11)
  1. W ?28,$J(ACRI2,11)
  1. W ?41,$J(ACRI3,11)
  1. W ?54,$J(ACRI4,11)
  1. W ?67,$J(ACRTI,11)
  1. W !
  1. F ACRI=1:1:79 W "-"
  1. W !!,"DECREASE"
  1. W ?15,$J(ACRD1,11)
  1. W ?28,$J(ACRD2,11)
  1. W ?41,$J(ACRD3,11)
  1. W ?54,$J(ACRD4,11)
  1. W ?67,$J(ACRTD,11)
  1. W !
  1. F ACRI=1:1:79 W "-"
  1. W !!,"QUARTER"
  1. W ?15,$J(ACRQ1,11)
  1. W ?28,$J(ACRQ2,11)
  1. W ?41,$J(ACRQ3,11)
  1. W ?54,$J(ACRQ4,11)
  1. W ?67,$J(ACRGTOT,11)
  1. W !
  1. F ACRI=1:1:79 W "-"
  1. W !,"CURRENT DISTRIBUTION:"
  1. S ACRPRT=$S(ACRGREF["ALW":"^ACRFALT",ACRGREF["ALC":"^ACRFALC",1:"^ACRFLOC")
  1. N DXS,DIP,DC,D0,DN
  1. S D0=ACRZDA
  1. D @ACRPRT
  1. W !!,"DISTRIBUTION"
  1. W ?37,"RECURRING"
  1. W ?50,"NON-RECURRG"
  1. W ?68,"TOTAL"
  1. W !,"-----------------------------"
  1. W ?35,"-----------"
  1. W ?50,"-----------"
  1. W ?65,"-----------"
  1. S (ACRSSANO,ACRGTOT,ACRRTOT,ACRNTOT)=0
  1. F S ACRSSANO=$O(^TMP("SSA",$J,"TOT",ACRSSANO)) Q:'ACRSSANO D
  1. .D SET
  1. .D WRITE
  1. S ACRGTOT=ACRRTOT+ACRNTOT
  1. W !,"-----------------------------"
  1. W ?35,"-----------"
  1. W ?50,"-----------"
  1. W ?65,"-----------"
  1. W !,"TOTAL ALLOWANCES"
  1. W ?35,$J(ACRRTOT,11)
  1. W ?50,$J(ACRNTOT,11)
  1. W ?65,$J(ACRGTOT,11)
  1. W !
  1. F ACRI=1:1:79 W "-"
  1. W !,"CERTIFIED-DIVISION OF FINANCE-PHS"
  1. W ?40,"SIGNATURE"
  1. W !!?40,"CARL FITZPATRICK"
  1. W !?40
  1. F ACRI=1:1:39 W "-"
  1. W !?40,"Director, Division of Resource Mgt"
  1. W !?40,"Indian Health Service"
  1. Q
  1. SET S (ACRTOT,ACRREC,ACRNREC)=0
  1. S ACRSSA=$P(^AUTTSSA(ACRSSANO,0),U,2)
  1. S ACRX=^TMP("SSA",$J,"TOT",ACRSSANO)
  1. S ACRREC=$P(ACRX,U)
  1. S ACRNREC=$P(ACRX,U,2)
  1. S ACRTOT=ACRREC+ACRNREC
  1. S ACRRTOT=ACRRTOT+ACRREC
  1. S ACRNTOT=ACRNTOT+ACRNREC
  1. Q
  1. WRITE W !,ACRSSA
  1. W ?35,$J(ACRREC,11)
  1. W ?50,$J(ACRNREC,11)
  1. W ?65,$J(ACRTOT,11)
  1. Q