source: FOIAVistA/tag/r/PAID-PRS/PRSATPD.m@ 1765

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

initial load of FOIAVistA 6/30/08 version

File size: 2.2 KB
Line 
1PRSATPD ; HISC/REL-Payroll Clear Prior Exceptions ;8/30/95 09:16
2 ;;4.0;PAID;;Sep 21, 1995
3 R !!,"Select T&L Unit (or ALL): ",X:DTIME G:'$T!("^"[X) EX S X=$TR(X,"al","AL") I X="ALL" S TLE="" G L1
4 K DIC S DIC="^PRST(455.5,",DIC(0)="EMQ" D ^DIC G EX:$D(DTOUT),PRSATPD:Y<1
5 S TLE=$P(Y,"^",2)
6L1 S PRSTLV=3 D Q1 G EX
7Q1 ; Process List
8 D NOW^%DTC S DT=%\1,(PG,QT)=0 D HDR I TLE'="" D Q2 G:QT EX D:$Y>3 H1 G EX
9 S PDA=0 F S PDA=$O(^PRST(458.5,PDA)) Q:PDA'>0 I '$P($G(^PRST(458,PDA,0)),"^",6) D G:QT EX
10 .S DFN=$P($G(^PRST(458.5,PDA,0)),"^",2) Q:'DFN D CHK
11 .Q:'$D(^PRST(458.5,"C",DFN,PDA))
12 .S Y0=$G(^PRSPC(DFN,0)) D PRT Q
13 D:$Y>3 H1 G EX
14Q2 S NX="" F S NX=$O(^PRSPC("ATL"_TLE,NX)) Q:NX="" F DFN=0:0 S DFN=$O(^PRSPC("ATL"_TLE,NX,DFN)) Q:DFN<1 I $D(^PRST(458.5,"C",DFN)) D G:QT Q3
15 .F PDA=0:0 S PDA=$O(^PRST(458.5,"C",DFN,PDA)) Q:PDA<1 D CHK
16 .Q:'$D(^PRST(458.5,"C",DFN))
17 .S Y0=$G(^PRSPC(DFN,0))
18 .F PDA=0:0 S PDA=$O(^PRST(458.5,"C",DFN,PDA)) Q:PDA<1 D PRT Q:QT
19 .Q
20Q3 Q
21CHK ; Check Exception
22 S X=$G(^PRST(458.5,PDA,0)),PDTI=$P(X,"^",3) Q:'PDTI Q:$P(X,"^",6)
23 S Y=$G(^PRST(458,"AD",PDTI)),PPI=$P(Y,"^",1),DAY=$P(Y,"^",2) Q:'PPI
24 S ESTR=$P(X,"^",5)_"^"_$P(X,"^",4)
25 D ^PRSATPE I '$D(ER) S DA=PDA D REM^PRSATPF Q
26 F K=0:0 S K=$O(ER(K)) Q:K<1 I ER(K)=ESTR K ER(K) G C1
27 S DA=PDA D REM^PRSATPF
28C1 F K=0:0 S K=$O(ER(K)) Q:K<1 S X1=PDTI,X2=ER(K) D ^PRSATPF
29 Q
30PRT ; List entries
31 S X=$G(^PRST(458.5,PDA,0)),PDTI=$P(X,"^",3),TIM=$P(X,"^",4),TXT=$P(X,"^",5) Q:'PDTI Q:$P(X,"^",6)
32 I $Y>(IOSL-6) D HDR Q:QT
33 W !!,$P(Y0,"^",1) W:$P(Y0,"^",8)'="" " (",$P(Y0,"^",8),")"
34 S X=PDTI D DTP^PRSAPPU W !?5,Y W:TIM'="" ?16,TIM W ?24,TXT
35P0 R !!,"Clear Prior Pay Period Exception? ",X:DTIME S:'$T!(X["^") QT=1 Q:QT S X=$TR(X,"yesno","YESNO")
36 I $P("YES",X,1)'="",$P("NO",X,1)'="" W *7," Answer YES to Clear or NO or RETURN to bypass" G P0
37 I X'?1"Y".E Q
38 D NOW^%DTC S $P(^PRST(458.5,PDA,0),"^",6,8)="1^"_DUZ_"^"_% Q
39HDR ; Display Header
40 D H1 Q:QT W:'($E(IOST,1,2)'="C-"&'PG) @IOF
41 S PG=PG+1 W !?26,"VA TIME & ATTENDANCE SYSTEM",?72,"Page ",PG
42 W !?26,"PRIOR PAY PERIOD EXCEPTIONS"
43 S X=DT D DTP^PRSAPPU W !?35,Y Q
44H1 I PG,$E(IOST,1,2)="C-" R !!,"Press RETURN to Continue.",X:DTIME S:'$T!(X["^") QT=1
45 Q
46EX G KILL^XUSCLEAN
Note: See TracBrowser for help on using the repository browser.