The UPTODATE function rebuilds to-date totals as seen on [IPVT] from information available in [IPPH].  This function is intended exclusively for rebuilding to-date values based upon converted data.

UPTODATE may be run by person or by payroll code and for a specific year or all years.

!Processing:
As it reads each employee's IPPH (pay header) information it will delete any existing [IPVT] ([P2K_PR_TODATE_HEADERS]) records for the to-date records selected in the parameters.  It will then go through all the [P2K_PR_PAY_HEADERS] records and rebuild them from the [P2K_PR_PAY_PC_AMOUNTS] data (the Pay Amounts tab on [IPPH]) based upon the [PAY_ISSUE_DATE].  

New parameters have been implemented for the following:
* __MTD__: Month To Date values are created if you have indicated you wish a [MTD summary|MONTHLY_SUMMARIES] on [IPPR].
* __QTD__: Quarter To Date values are created if you have indicated you wish a [QTD summary|QUARTERLY_SUMMARIES] on [IPPR].  QTDs are based on calendar quarters.
* __YTD__: Year To Date values are always created
* __FTD__: Fiscal Month To Date are created if you have indicated you wish a [FTD summary|FISCAL_SUMMARIES] on [IPPR].  FTDs are based on the Fiscal months as defined on Fiscal Calendar for the GL Company ([IDGC]). The FTD will not be processed when a year is provided in the YEAR Parameter.
* __ATD__: Assignment To Date  records are created if you have indicated you wish [Assignment Summary|Assignment_Summary] on [IPPR]. The totals are by Assignment Code.  This information is taken from [P2K_PR_PAY_LINES] and [P2K_PR_PAY_LINE_DETAILS], which are shown on the Pay Lines tab of [IPPH], rather than the PC Amounts.  Only those pay components that are on the Pay Line Details will be included by assignment.  The ATD will not be processed when a year is provided in the YEAR Parameter.
* __YEAR(YYYY)__: The for which the To-date records are to be updated for.  


For M/Q/Y records, process either all IPPH or the Year matching the report parameter



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