<?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 ProjectBudget noun...in progress.
        26 Oct 2010    NO      		Changed TradeGroupID to TradeGroupCode (BOD-1473)
        17 Nov 2010    NO      		Moved common elements to ProjectComponents
        10 Feb 2013	   Ravi.Ravuri	Added elements CostContractAmount,LandedCostContractAmount under BudgetDetailType (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="ProjectBudget" type="ProjectBudgetType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">ProjectBudget noun
				description here .... </xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:complexType name="ProjectBudgetType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2"/>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledStandardHeaderType">
				<xsd:sequence>
					<xsd:element ref="DocumentReference" minOccurs="0"/>
					<xsd:element ref="ProjectReference" minOccurs="0"/>
					<xsd:element ref="BudgetDetail" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>

	<xsd:complexType name="BudgetDetailType">
		<xsd:sequence>
			<xsd:element ref="ID" minOccurs="0"/>
			<xsd:element ref="ProjectPlan" minOccurs="0"/>
			<xsd:element ref="ProjectElement" minOccurs="0"/>
			<xsd:element ref="BudgetType" minOccurs="0"/>
			<xsd:element ref="AdjustmentIndicator" 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="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="NormativeQuantity" minOccurs="0"/>
			<xsd:element ref="NormativeBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="Item" minOccurs="0"/>
			<xsd:element ref="LaborCostReference" minOccurs="0"/>
			<xsd:element ref="SundryCostReference" minOccurs="0"/>
			<xsd:element ref="ExternalEquipmentIndicator" minOccurs="0"/>
			<xsd:element ref="NetQuantity" minOccurs="0"/>
			<xsd:element ref="NetBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="Duration" minOccurs="0"/>
			<xsd:element ref="DurationHourDecimal" minOccurs="0"/>
			<xsd:element ref="ScrapPercent" minOccurs="0"/>
			<xsd:element ref="BudgetStatus" minOccurs="0"/>
			<xsd:element ref="BudgetDate" minOccurs="0"/>
			<xsd:element ref="CostControlPeriod" minOccurs="0"/>
			<xsd:element ref="FinancialPeriod" minOccurs="0"/>
			<xsd:element ref="HoursControlPeriod" 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="LandedCostAmount" minOccurs="0"/>
			<xsd:element ref="LandedCostBaseAmount" minOccurs="0"/>
			<xsd:element ref="LandedCostReportAmount" minOccurs="0"/>
			<xsd:element ref="LandedCostProjectAmount" minOccurs="0"/>
			<xsd:element ref="LandedCostContractAmount" minOccurs="0"/> <!-- BOD-2543 -->
			<xsd:element ref="CostPrice" minOccurs="0"/>
			<xsd:element ref="CostComponentCode" minOccurs="0"/>
			<xsd:element ref="SalesPrice" minOccurs="0"/>
			<xsd:element ref="ExtendedSalesAmount" minOccurs="0"/>
			<xsd:element ref="ExtendedSalesBaseAmount" minOccurs="0"/>
			<xsd:element ref="ExtendedSalesReportAmount" minOccurs="0"/>
			<xsd:element ref="ExtendedSalesProjectAmount" minOccurs="0"/>
			<xsd:element ref="LaborPerson" minOccurs="0"/>
			<xsd:element ref="TradeGroupCode" minOccurs="0"/>
			<xsd:element ref="ProjectExtensionReference" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="UserArea" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="BudgetDetail" type="BudgetDetailType"/>

	<xsd:element name="BudgetType" type="CodeType"/>
	<xsd:element name="AdjustmentIndicator" type="IndicatorType"/>

	<xsd:element name="BudgetID" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation>BudgetID is used to reference a budget. </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="CostContractAmount" type="AmountType"/> <!-- BOD-2543 -->
	<xsd:element name="LandedCostContractAmount" type="AmountType"/> <!-- BOD-2543 -->
	


</xsd:schema>
