<?xml version="1.0" encoding="utf-8"?>
<!--
        
        ** OAGIS® Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, All Rights Reserved **
        
        This is an OAGIS® BOD XML Schema (XSD) Definition.
        
       License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.
        
        For support, more information, or to report implementation bugs, please contact the Open Applications Group at xml@openapplications.org.
        
        XML Schema 
        
-->
 
<!--
© Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
are the property of their respective owners.
 
-->
 
<!--    *****     Update Log     *****
 
Date          By      Note
10 Apr 2008    JB      Added correct Copyright and update comments to schema.
26 Aug 2015    LA      Added TaxStatusCode and TaxLocationID, BOD-2976
9 Jun 2016     LA      Added CostCenterCode BOD-3204
1 Jul 2016     LA      Added DepartmentCode BOD-3152
11 Jun 2018    LA      DirectDepositInstruction and EmployeeAssignment added, BOD-3374
18 Jun 2018    LA      Sequence of DirectDepositInstruction and EmployeeAssignment changed, BOD-3374
        *****     Update End     *****
 
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns="http://schema.infor.com/InforOAGIS/2"
	targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
	attributeFormDefault="unqualified">

	<xsd:include schemaLocation="../Components/HumanResource/HRComponents.xsd"/>

	<xsd:element name="Personnel" type="PersonnelType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Personnel information
				is the human resource information maintained for each employee. It includes such
				data as job code, employee status, department or place in the organization, and
				job-related skills. Although generally maintained in a Human Resource Management
				System (HRMS), this information may also be needed and updated by manufacturing
				applications (workforce scheduling) or project management (resource
				allocation).</xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:complexType name="PersonnelType">
		<xsd:complexContent>
			<xsd:extension base="EmployeeBaseType">
				<xsd:sequence>
					<xsd:element ref="EffectiveTimePeriod" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Indicates the time in which the person works for the company.
								Typically the Start date is date in which the persons employment is
								effective and the Finish date is the the date in which the employee
								is terminated.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>

					<xsd:element ref="PasswordEncrypted" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is
								the confidential code entered by an employee to obtain access to a
								secured resource. An example of the use could be the code entered
								when entering their time worked on the manufacturing shop
								floor</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="HROrganizationIDs" minOccurs="0"/>
					<xsd:element ref="CostCenterCode" minOccurs="0"/>
					<!--
						Note - CostCenterID exists in this XSD from OAGIS.
						But we use CostCenterCode already for all XM related nouns; 
						This element is also being added for XM related integrations only
						It would be better to use CostCenterCode always, since semantically
						too we always refer to a code for cost center, not an ID.
					-->
					<xsd:element ref="Facility" minOccurs="0"/>
					<xsd:element ref="GLEntityID" minOccurs="0"/>
					<xsd:element ref="DepartmentCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Department code associated to the Personnel
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="CostCenterID" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is
								an accumulator of cost information that may be an organizational
								unit or area of responsibility. It is an organization code that
								allows a grouping of expenses and costs. SYNONYMS are Stocking
								Location, Work Group </xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="WorkCenterID" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This
								identifies an area consisting of one or more resources where
								production takes place. It is used to identify a specific Work
								Center on a Shop Floor or other manufacturing
								facility</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="TaxStatusCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Specifies the tax status of an employee - 
								Examples - Tax payer with standard rate, etc.
								It is assumed that the same tax status code is 
								applicable for all the tax locations. 
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="TaxLocationID" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation>
								Location where the employee has to pay tax. Use only when different from 
								WorkCenterID.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>

					<xsd:element ref="JobRestrictionCodes" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This
								indicates any limitations to complete a job assignment based on
								physical, mental, legal or any other conditions</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="ScheduleType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">ScheduleType is a code or identifier that describes the specific
								schedule and can be used in a variety of contexts. When used in the
								context of employee, ScheduleType refers to the specific schedule
								for the employee or worker. When used in the context of a Schedule,
								ScheduleType indicates whether the Schedule is a demand schedule
								from a customer or a supply schedule from a supplier. Valid values
								for this context are: “Demand”, “Supplier”</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="EmploymentHours" minOccurs="0"/>
					<xsd:element ref="WorkShiftID" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is
								the Employee Shift Identifier. ShiftId describes the regular or
								standard authorized work time for the employee</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="WageType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is
								a code or identifier that describes the specific type a wage an
								employee or worker is paid. Examples include: Exempt from Overtime,
								Non-Exempt from Overtime</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="WageGroupCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is
								used to classify an employee’s wage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="SalaryPaidThroughPayrollIndicator" minOccurs="0"/>
					<xsd:element ref="ExpensesPaidThroughPayrollIndicator" minOccurs="0"/>
					<xsd:element ref="OvertimeEligibleIndicator" minOccurs="0"/>
					<xsd:element ref="ContractReference" minOccurs="0"/>
					<xsd:element ref="DirectDepositInstruction" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="EmployeeAssignment" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
					<xsd:element ref="Classification" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>

	<xsd:element name="SalaryPaidThroughPayrollIndicator" type="IndicatorType"/>
	<xsd:element name="ExpensesPaidThroughPayrollIndicator" type="IndicatorType"/>
	<xsd:element name="TaxStatusCode" type="CodeType"/>
	<xsd:element name="TaxLocationID" type="IdentifierType"/>

</xsd:schema>
