source: FOIAVistA/trunk/r/PAID-PRS/PRSAFEE.m@ 1154

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

initial load of FOIAVistA 6/30/08 version

File size: 1.7 KB
Line 
1PRSAFEE ; HISC/REL-Fee Basis Appointees ;12/14/00
2 ;;4.0;PAID;**6,64**;Sep 21, 1995
3 S PRSTLV=2 D ^PRSAUTL G:TLI<1 EX
4D1 S %DT="AEPX",%DT("A")="Posting Date: ",%DT("B")="T-1",%DT(0)=-DT W ! D ^%DT
5 G:Y<1 EX S D1=Y S Y=$G(^PRST(458,"AD",D1)),PPI=$P(Y,"^",1)
6 I PPI="" W !!,*7,"Pay Period is Not Open Yet!" G EX
7N1 D NME G EX:DFN<0,N1:'DFN
8 I "T"'[STAT W *7,!,"This Employee has already been released to Payroll!" G N1
9 D POST G N1
10NME K DIC S DIC("A")="Select EMPLOYEE: ",DIC("S")="I $P(^(0),""^"",8)=TLE,$D(^PRST(458,PPI,""E"",+Y))",DIC(0)="AEQM",DIC="^PRSPC(",D="ATL"_TLE W ! D IX^DIC S DFN=+Y K DIC
11 Q:DFN<1 D ^PRSAENT I PP'="F" W !!?5,"Employee is not a Fee Basis Appointee." S DFN=0 Q
12 S STAT=$P($G(^PRST(458,PPI,"E",DFN,0)),"^",2) Q
13POST ; Post Earnings for Pay Period
14 S DTE=$P($G(^PRST(458,PPI,2)),"^",1)_" to "_$P($G(^(2)),"^",14)
15 K AUR S AUR(1)=$G(^PRST(458,PPI,"E",DFN,2))
16 S DDSFILE=458,DDSFILE(1)=458.01,DA(1)=PPI,DA=DFN
17 S DR="[PRSA FEE POST]" D ^DDS K DS Q:$G(^PRST(458,PPI,"E",DFN,2))=AUR(1)
18 D NOW^%DTC S NOW=% S $P(^PRST(458,PPI,"E",DFN,2),"^",15,16)=DUZ_"^"_NOW Q
19PRP ; Prior Pay Period Update
20 S PRSTLV=2 D ^PRSAUTL G:TLI<1 EX D NOW^%DTC S DT=%\1,NOW=%
21 S %DT="AEPX",%DT("A")="Posting Date: ",%DT(0)=-DT W ! D ^%DT
22 G:Y<1 EX S D1=Y S Y=$G(^PRST(458,"AD",D1)),PPI=$P(Y,"^",1)
23 I PPI="" W !!,*7,"Pay Period is Not Open Yet!" G EX
24 D NME G:DFN<1 EX
25 I "T"[STAT D POST G EX
26 I STAT'="X" W !!,*7,"Card in Payroll and not transmitted; request return of card." Q
27 S Z=$G(^PRST(458,PPI,"E",DFN,2))
28 D POST I $G(^PRST(458,PPI,"E",DFN,2))'=AUR(1) D
29 .S AUT="V",AUS="R" D ^PRSAUD ; Approve, Notify Payroll
30 .I $G(AUR(7))["^" K ^PRST(458,PPI,"E",DFN,2) I $D(AUR(1)) D
31 ..S ^PRST(458,PPI,"E",DFN,2)=AUR(1)
32 G EX
33EX G KILL^XUSCLEAN
Note: See TracBrowser for help on using the repository browser.