<?xml version="1.0" encoding="utf-8"?>

<!--
   Schema agency: 	Open Applications Group 


   OAGIS® Revision:    9.3  
   Date:               11 August 2008 
   Copyright 1997-2008, All Rights Reserved 

  	
   Copyright (C) Open Applications Group (1997-2008). 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 oagis@openapplications.org.
    
   XML Schema 
     
    Name: /OAGi-BPI-Platform/org_openapplications_oagis/9_3/Developer/Nouns/PayrollAdvice.xsd
-->

<!--
	© Copyright 2013 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
	23 Aug 2013   PO      Added new noun.
	
	*****     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/Financial/Components.xsd"/>
	<xsd:element name="PayrollAdvice" type="PayrollAdviceType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">The purpose of the
				PayrollAdvice Business Object Document is to provides a detailed breakdown of a
				payroll run. It is broken down by person paid and then lines for each amount. The
				amounts are broken down by an optional GL Account and a classification element that
				will contain codes that can be used by the ERP to determine the appropriate
				postings.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="PayrollAdviceHeader" type="PayrollAdviceHeaderType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9"/>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="PayrollAdviceDetail" type="PayrollAdviceDetailType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9"/>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="PayrollAdviceType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">The schema type for
				PayrollAdvice. To be entered.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="PayrollAdviceHeader" minOccurs="0"/>
			<xsd:element ref="PayrollAdviceDetail" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="PayrollAdviceHeaderType">
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledHeaderType">
				<xsd:sequence>
					<xsd:element ref="EffectiveDateTime" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="PayrollAdviceDetailType">
		<xsd:sequence>
			<xsd:element ref="LineNumber" minOccurs="0"/>
			<xsd:element ref="PersonReference" minOccurs="0"/>
			<xsd:element ref="WageComponentCode" minOccurs="0"/>
			<xsd:element ref="Amount" minOccurs="0"/>
			<xsd:element ref="BaseAmount" minOccurs="0"/>
			<xsd:element ref="ReportAmount" minOccurs="0"/>
			<xsd:element ref="DebitCreditFlag" minOccurs="0"/>
			<xsd:element ref="AccountingEntityID" minOccurs="0"/>
			<xsd:element ref="GLAccount" minOccurs="0"/>
			<xsd:element ref="ExpenseReportReference" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>


</xsd:schema>
