!!!Alias: IVPTD
The INF_CV_TODATES table is used to import employee’s to-date (YTD, MTD, QTD) amounts into the software data structures.   The TODATES table stores pay component information for year, quarter, month, fiscal and assignment to-date periods.  The information is stored in two tables: a “header” and “pay component details”.  A new header record is created for each combination of the following fields: Employment record (entity, person_code, employment_type, hire_date), group (for specific unit), state/province of work, state/province of residence (within the country specified), School District Code, GEO Code for work, GEO Code for residence, type of To-date (year, month, etc.) and specific period for that to-date type.

Tables loaded:	
*[P2K_PR_TODATE_HEADERS] (first record for each set only)
*[P2K_PR_TODATE_PC_AMOUNTS] (each record)
!!Table Columns
\\
||Column name||Data Type / Size||Mand.||Notes
|[ID]|Number(10)| |Used internally to define a unique identification for the record. This field would not be loaded.
|[ENTITY_CODE]|Varchar2(16)|Y|Used for validation of the employment record. Validation:	The Entity Code provided must be defined on [P2K_CM_ENTITIES].
|[PERSON_CODE]|Varchar2(16)|Y|Used for validation of the employment record. Validation:	Must be a valid [PERSON_CODE] already defined on the [P2K_HR_IDENTITIES] table.
|[EMPLOYMENT_TYPE]|Varchar2(30)| |Validation: 	The employee must have an active employment record for this employment type.  Must be one of the fixed lexicon values from [X_EMPLOYMENT_TYPE]. Derivation: If you do not provide an employment type value, the conversion application will look for any [P2K_HR_EMPLOYMENTS] record that matches the other criteria. Suggestion:	If you are loading employees, you can set this field to a fixed value of ‘01’.
|[HIRE_DATE]|Date()| |Used for validation of the employment record. Derivation:	If you do not provide a hire date, the conversion application will look for any [P2K_HR_EMPLOYMENTS] record that matches the other criteria. Validation:	Must be a valid date.
|[UNIT_CODE]|Varchar2(16)|Y|Validation: 	Must be a valid [ENTITY_CODE] defined on [P2K_CM_UNITS].
|[GROUP_CODE]|Varchar2(16)|Y|Validation:	Must be a valid [GROUP_CODE] defined on [P2K_CM_GROUPS].
|[COUNTRY_CODE]|Varchar2(16)|Y|Validation:	Must be a valid [COUNTRY_CODE] on [P2K_CM_COUNTRIES].  If you provide a [STATE_PROVINCE_CODE], then you must provide a [COUNTRY_CODE].
|[STATE_PROVINCE_CODE_HOME]|Varchar2(16)| |Validation:	Must be a valid state code or province code, for the [COUNTRY_CODE] indicated on [P2K_CM_STATE_PROVINCES].  If you provide a [STATE_PROVINCE_CODE], then you must provide a [COUNTRY_CODE].
|[STATE_PROVINCE_CODE_WORK]|Varchar2(16)| |Validation:	Must be a valid state code or province code, for the [COUNTRY_CODE] indicated on [P2K_CM_STATE_PROVINCES].  If you provide a [STATE_PROVINCE_CODE], then you must provide a [COUNTRY_CODE].
|[TODATE_TYPE]|Varchar2(30)|Y|Validation:	The employee must have an active employment record for this employment type.  Must be one of the fixed lexicon values from [X_TODATE_TYPE]
|[CALENDAR_PERIOD]|Number(10)| |
|[SCHOOL_DISTRICT_CODE]|Varchar2(16)| |Validation:	Must be a valid school district code already defined on [P2K_CM_SCHOOL_DISTRICTS]
|[GEO_CODE_WORK]|Varchar2(16)| |Validation:	The [GEO_CODE] must be a valid GEO code on the [P2K_CM_TAX_JURISDICTIONS] table.  If the [STATE_PROVINCE_CODE_WORK] is provided, then the [GEO_CODE] must be within that specific state, as well.
|[GEO_CODE_HOME]|Varchar2(16)| |Validation:	The [GEO_CODE] must be a valid GEO code on the [P2K_CM_TAX_JURISDICTIONS] table.  If the [STATE_PROVINCE_CODE_HOME] is provided, then the [GEO_CODE] must be within that specific state, as well.
|[PC_CODE]|Number(4)| |Validation:	Must be a valid pay component already defined on [P2K_PR_PAY_COMPONENTS].
|[AMOUNT]|Number(18)| |
|[DESCRIPTION]|Varchar2(50)| |
|[CREATE_DATE]|Date()| |This field used internally only to provide audit information for the creation/updating of records. This field would not be loaded.
|[CREATE_USER]|Varchar2(30)| |This field used internally only to provide audit information for the creation/updating of records. This field would not be loaded.
|[CHANGE_DATE]|Date()| |This field used internally only to provide audit information for the creation/updating of records. This field would not be loaded.
|[CHANGE_USER]|Varchar2(30)| | This field used internally only to provide audit information for the creation/updating of records. This field would not be loaded.