!!EY - Year To Date Element Value

The EY (Year to Date Element Value) may be used when it is necessary to use the Year-to-Date value of a number of Pay Components grouped together.

%%information This only includes closed pays in history, and does not include the current payrun value of the element.%%

;Statement: Let Pension hours be equal to year-to-date hours worked then exit.

||Line||CMD||OT||Operand 1||OPER||OT||Operand2||OT||Operand3||If Goto||	Else GoTo
|00010|	LET|PC|296|EQ|EY|REG HOURS|  |  |99999|	
|99999|	EXIT|  |  |  |  |  |  |  |99999	

;Statement:Let Pension hours be equal to total year-to-date hours (year-to-date plus current pay period) worked then exit.

||Line||CMD||OT||Operand 1||OPER||OT||Operand2||OT||Operand3||If Goto||	Else GoTo
|00010|	LET|V|YEAR END|	EY|$S|PERIOD-START-DATE|  |  |00020|	
|00020|	LET|V|HOURS TO YEAR END|ELPL|ET|REG HOURS|V|YEAR END|00030|	
|00030|LET|PC|296|ADD|EY|REG HOURS|V|HOURS TO YEAR END|99999|	
|99999|EXIT|  |  |  |  |  |  |  |99999	|


----
![Notes|Edit:Internal.EY_ELEMENT] 	
[{InsertPage page='Internal.EY_ELEMENT' default='Click to create a new notes page'}]