source: WorldVistAEHR/trunk/r/PAID-PRS/PRSDW450.m@ 1166

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

revised back to 6/30/08 version

File size: 2.1 KB
Line 
1PRSDW450 ;HISC/GWB-WRITE PAID EMPLOYEE DATA ;03/14/03
2 ;;4.0;PAID;**2,78**;Sep 21, 1995
3WRITE S NODEDD=^DD(450,FIELDN,0)
4 S NODEUTIL=$G(^UTILITY("DIQ1",$J,450,DA,FIELDN,"E"))
5 I CATEGORY="VERIFICATION OF EMPLOYMENT",FIELDN=556 D DSPYTD^PRSDYTD Q:PRTC=0
6 I CATEGORY="BENEFITS",FIELDN=427 D D CHECK Q:PRTC=0
7 .W:TSPYTD'=0 !,"TSP EMP DED YTD",?30,$J($FN(TSPYTD,",",2),14) K TSPYTD
8 I CATEGORY="BENEFITS",FIELDN=232 D D CHECK Q:PRTC=0
9 .W:HBDYTD'=0 !,"HEALTH BENEFITS DEDUCTION YTD",?30,$J($FN(HBDYTD,",",2),14) K HBDYTD
10 I (NODEUTIL="")!(NODEUTIL="NA") K NODEDD,NODEUTIL Q
11 S INTERNAL=^UTILITY("DIQ1",$J,450,DA,FIELDN,"I")
12 S DESC=^UTILITY("DIQ1",$J,450,DA,FIELDN,"E")
13 I CATEGORY="VERIFICATION OF EMPLOYMENT",FIELDN=28,INTERNAL<50 W !,"HOURLY RATE",?30,$J($FN(INTERNAL,",",2),14) D CHECK Q:PRTC=0 S INTERNAL=INTERNAL*2087,DESC=DESC_" X 2087"
14 I $P(NODEDD,U,2)["NJ",+INTERNAL=0 K NODEDD,NODEUTIL Q
15 I PRTC=1 D HDR^PRSDSRS S PRTC=""
16 W !,$P(NODEDD,U,1)
17 I FIELDN>88,FIELDN<116.3 S INTERNAL="",FNM=$P(NODEDD,U,1) D G CHECK
18 .I $D(^PRSP(454,1,"PUC","C",FNM)) S FUIEN=$O(^PRSP(454,1,"PUC","C",FNM,0)),INTERNAL=$P(^PRSP(454,1,"PUC",FUIEN,0),U,1)
19 .I INTERNAL'="",$P(^PRSP(454,1,"PUC",FUIEN,0),U,3)'="" S INTERNAL=INTERNAL_" "_$P(^PRSP(454,1,"PUC",FUIEN,0),U,3)
20 .W ?30,$J(DESC,14),?47,INTERNAL
21 I (FIELDN=349)!(FIELDN=355)!(FIELDN=363)!(FIELDN=369) W ?47,DESC G CHECK
22 I (FIELDN=725)!(FIELDN=731)!(FIELDN=740)!(FIELDN=746) W ?47,DESC G CHECK
23 W ?30,$S($P(NODEDD,U,5)["""$""":$J($FN(INTERNAL,",",2),14),$P(NODEDD,U,2)["NJ":$J(INTERNAL,14,2),$P(NODEDD,U,2)["D":$J(DESC,14),1:$J(INTERNAL,14))
24 I $P(NODEDD,U,2)'["D",INTERNAL'=DESC D DESC
25 K DESC,INTERNAL,NODEDD,NODEUTIL,FNM,FUIEN
26CHECK I $E(IOST,1)="C",$Y>(IOSL-4) D PRTC
27 Q
28PRTC W ! K DIR,DIRUT,DIROUT,DTOUT,DUOUT
29 S DIR(0)="E",DIR("A")="Press RETURN to continue" D ^DIR S PRTC=Y
30 S:$D(DIRUT) PRTC=0
31 Q
32DESC I $L(DESC)<33 W ?47,DESC Q
33 S COLUMN=47,LGTH=0
34 F L1=1:1 Q:LGTH=$L(DESC)!(LGTH>($L(DESC))) W:$L($P(DESC," ",L1))>(80-COLUMN) ! S:$L($P(DESC," ",L1))>(80-COLUMN) COLUMN=47 W ?COLUMN,$P(DESC," ",L1) S COLUMN=COLUMN+$L($P(DESC," ",L1))+1,LGTH=LGTH+$L($P(DESC," ",L1))+1
35 K COLUMN,LGTH,L1
36 Q
Note: See TracBrowser for help on using the repository browser.