<?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 ProjectCosts noun...in progress.
17 Nov 2010   NO      		Moved common elements to ProjectComponents
24 Jan 2014	  Ravi.Ravuri	Added Type attribute under ProjectCostsType (BOD-2593)
10 Feb 2014	  Ravi.Ravuri	Added element CostContractAmount under CostDetailType (BOD-2543)

        *****     Update End     *****
 
-->
<xsd:schema targetNamespace="http://schema.infor.com/InforOAGIS/2"
	xmlns="http://schema.infor.com/InforOAGIS/2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:include schemaLocation="../Components/Operational/ProjectComponents.xsd"/>
	<xsd:element name="ProjectCosts" type="ProjectCostsType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">ProjectCosts noun
				description here .... </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="ProjectCostsType">
		<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="CostDetail" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
				<xsd:attribute name="type" type="NormalizedStringType"> <!-- BOD-2593 -->
					<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>
	<xsd:complexType name="CostDetailType">
		<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="InvoiceReference" minOccurs="0"/>
			<xsd:element ref="DocumentReference" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="RegistrationDate" minOccurs="0"/>
			<xsd:element ref="Item" minOccurs="0"/>
			<xsd:element ref="LaborCostReference" minOccurs="0"/>
			<xsd:element ref="SundryCostReference" minOccurs="0"/>
			<xsd:element ref="PostingType" minOccurs="0"/>
			<xsd:element ref="LaborPerson" minOccurs="0"/>
			<xsd:element ref="OverheadCode" minOccurs="0"/>
			<xsd:element ref="CostType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>can be item, labor, equipment, subcontracting or any sundry.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="CostComponentCode" minOccurs="0"/>
			<xsd:element ref="Quantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>quantity will be the qty of hours or qty of items, etc.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="BaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="Duration" minOccurs="0"/>
			<xsd:element ref="DurationHourDecimal" minOccurs="0"/>
			<xsd:element ref="CostAmount" minOccurs="0"/>
			<xsd:element ref="CostBaseAmount" minOccurs="0"/>
			<xsd:element ref="CostReportAmount" minOccurs="0"/>
			<xsd:element ref="CostProjectAmount" minOccurs="0"/>
			<xsd:element ref="CostContractAmount" minOccurs="0"/> <!-- BOD-2543 -->
			<xsd:element ref="SalesAmount" minOccurs="0"/>
			<xsd:element ref="SalesBaseAmount" minOccurs="0"/>
			<xsd:element ref="SalesReportAmount" minOccurs="0"/>
			<xsd:element ref="SalesProjectAmount" minOccurs="0"/>
			<xsd:element ref="SalesContractAmount" minOccurs="0"/>
			<xsd:element ref="CostControlPeriod" minOccurs="0"/>
			<xsd:element ref="FinancialPeriod" minOccurs="0"/>
			<xsd:element ref="HoursControlPeriod" minOccurs="0"/>
			<xsd:element ref="BillableIndicator" minOccurs="0"/>
			<xsd:element ref="ProjectExtensionReference" minOccurs="0"/>
			<xsd:element ref="ProjectContractReference" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="CostDetail" type="CostDetailType"/>
	<xsd:element name="CostsType" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Holds type associated with the noun Costs.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="CostContractAmount" type="AmountType"/> <!-- BOD-2543 -->
	
</xsd:schema>
