<?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
13 Apr 2010     NO      		New ProjectRevenue noun...in progress.
17 Nov 2010     NO      		Moved common elements to ProjectComponents
28 Jan 2014	    Ravi.Ravuri		Added elements PaymentTerm,PlannedBillingDateTime,Classification,Reference,DocumentReference,Item under RevenueDetailType and Added Type attribute at noun level (BOD-2588)
10 Feb 2014	 	Ravi.Ravuri		Added element RevenueContractAmount under RevenueDetailType (BOD-2543)
        *****     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/Operational/ProjectComponents.xsd"/>

	<xsd:element name="ProjectRevenue" type="ProjectRevenueType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">ProjectRevenue noun
				description here .... </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:complexType name="ProjectRevenueType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2"/>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledStandardHeaderType">
				<xsd:sequence>
					<xsd:element ref="ProjectReference" minOccurs="0"/>
					<xsd:element ref="RevenueDetail" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
				<xsd:attribute name="type" type="NormalizedStringType"> <!-- BOD-2588 -->
					<xsd:annotation>
						<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Identifies the nature of the project transaction</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	
	<!-- New elements and types that will be left in noun for 2.3.3 and moved to components and Fields for 2.4. -->

	<xsd:complexType name="RevenueDetailType">
		<xsd:sequence>
			<xsd:element ref="ID" minOccurs="0"/>
			<xsd:element ref="ProjectPlan" minOccurs="0"/>
			<xsd:element ref="ProjectElement" minOccurs="0"/>
			<xsd:element ref="Status" minOccurs="0"/>
			<xsd:element ref="RevenueCode" minOccurs="0"/>
			<xsd:element ref="TransactionDateTime" minOccurs="0"/>
			<xsd:element ref="RegistrationDate" minOccurs="0"/>
			<xsd:group ref="FreeFormTextGroup"/>
			<xsd:element ref="CostComponentCode" minOccurs="0"/>
			<xsd:element ref="RevenueDueDate" minOccurs="0"/>
			<xsd:element ref="RevenueType" minOccurs="0"/>
			<xsd:element ref="RevenuePostingType" minOccurs="0"/>
			<xsd:element ref="RevenueAmount" minOccurs="0"/>
			<xsd:element ref="RevenueBaseAmount" minOccurs="0"/>
			<xsd:element ref="RevenueReportAmount" minOccurs="0"/>
			<xsd:element ref="RevenueProjectAmount" minOccurs="0"/>
			<xsd:element ref="RevenueContractAmount" minOccurs="0"/> <!-- BOD-2543 -->
			<xsd:element ref="CostControlPeriod" minOccurs="0"/>
			<xsd:element ref="FiscalPeriod" minOccurs="0"/>
			<xsd:element ref="PaymentTerm" minOccurs="0"/> <!-- BOD-2588 -->
			<xsd:element ref="CustomerParty" minOccurs="0"/>
			<xsd:element ref="BillToParty" minOccurs="0"/>
			<xsd:element ref="PlannedBillingDateTime" minOccurs="0"/> <!-- BOD-2588 -->
			<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/> <!-- BOD-2588 -->
			<xsd:element ref="Classification" minOccurs="0"/> <!-- BOD-2588 -->
			<xsd:element ref="DocumentReference" minOccurs="0" maxOccurs="unbounded"/> <!-- BOD-2588 -->
			<xsd:element ref="InvoiceReference" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="ProjectExtensionReference" minOccurs="0"/>
			<xsd:element ref="ProjectContractReference" minOccurs="0"/>
			<xsd:element ref="Item" minOccurs="0"/> <!-- BOD-2588 -->
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="RevenueDetail" type="RevenueDetailType"/>

	<xsd:element name="RevenueID" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation>RevenueID is ... </xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:element name="RevenueType" type="CodeType"/>
	<xsd:element name="RevenuePostingType" type="CodeType"/>
	<xsd:element name="RevenueDueDate" type="DateType"/>
	<xsd:element name="RevenueDescription" type="DescriptionType"/>
	<xsd:element name="RevenueContractAmount" type="AmountType"/> <!-- BOD-2543 -->
</xsd:schema>
