<?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
16 Nov 2010    NO      Initial version ....

        *****     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="../Common/Components.xsd"/>

	<!-- ProjectBalance and ProjectPeriodBalance -->
	<xsd:complexType name="ProjectCostType">
			<xsd:sequence>
					<xsd:element ref="CostType" minOccurs="0">
							<xsd:annotation>
									<xsd:documentation>Includes Material, labor, Sundry, Equipment, Subcontractinge.
									</xsd:documentation>
							</xsd:annotation>
					</xsd:element>
					<xsd:element ref="ControlCode" minOccurs="0"/>
					<xsd:element ref="CostComponentCode" minOccurs="0"/>

					<xsd:element ref="TotalBudgetAmount" minOccurs="0"/>
					<xsd:element ref="TotalBudgetBaseAmount" minOccurs="0"/>
					<xsd:element ref="ActualCostAmount" minOccurs="0"/>
					<xsd:element ref="ActualCostBaseAmount" minOccurs="0"/>
					<xsd:element ref="PerformedCostAmount" minOccurs="0"/>
					<xsd:element ref="PerformedCostBaseAmount" minOccurs="0"/>
					<xsd:element ref="RemainingBudgetAmount" minOccurs="0"/>
					<xsd:element ref="RemainingBudgetBaseAmount" minOccurs="0"/>
					<xsd:element ref="ActualRevenueAmount" minOccurs="0"/>
					<xsd:element ref="ActualRevenueBaseAmount" minOccurs="0"/>
					<xsd:element ref="PlannedRevenueAmount" minOccurs="0"/>
					<xsd:element ref="PlannedRevenueBaseAmount" minOccurs="0"/>
					<xsd:element ref="WorkInProcessCostAmount" minOccurs="0"/>
					<xsd:element ref="WorkInProcessCostBaseAmount" minOccurs="0"/>
					<xsd:element ref="ForecastCostAmount" minOccurs="0"/>
					<xsd:element ref="ForecastCostBaseAmount" minOccurs="0"/>
					<xsd:element ref="VarianceAtCompletionAmount" minOccurs="0"/>
					<xsd:element ref="VarianceAtCompletionBaseAmount" minOccurs="0"/>
					<xsd:element ref="BudgetAtCompletionAmount" minOccurs="0"/>
					<xsd:element ref="BudgetAtCompletionBaseAmount" minOccurs="0"/>
					<xsd:element ref="EstimateAtCompletionAmount" minOccurs="0"/>
					<xsd:element ref="EstimateAtCompletionBaseAmount" minOccurs="0"/>
					<xsd:element ref="EstimateToCompletionAmount" minOccurs="0"/>
					<xsd:element ref="EstimateToCompletionBaseAmount" minOccurs="0"/>
					<xsd:element ref="EstimateExtraCostAmount" minOccurs="0"/>
					<xsd:element ref="EstimateExtraCostBaseAmount" minOccurs="0"/>
					<xsd:element ref="CommitmentCostAmount" minOccurs="0"/>
					<xsd:element ref="CommitmentCostBaseAmount" minOccurs="0"/>
					<xsd:element ref="ForecastExtraRevenueAmount" minOccurs="0"/>
					<xsd:element ref="ForecastExtraRevenueBaseAmount" minOccurs="0"/>
					<xsd:element ref="CostOfGoodsSoldAmount" minOccurs="0"/>
					<xsd:element ref="CostOfGoodsSoldBaseAmount" minOccurs="0"/>
					<xsd:element ref="RevenuesRecognizedAmount" minOccurs="0"/>
					<xsd:element ref="RevenuesRecognizedBaseAmount" minOccurs="0"/>

					<xsd:element ref="RegistrationDate" minOccurs="0"/>
			</xsd:sequence>
			<xsd:attribute name="sequence" type="PositiveIntegerNumericType"/>
	</xsd:complexType>

	<xsd:element name="ProjectMonitoringCosts" type="ProjectCostType"/>
	<xsd:element name="ProjectPerformanceCosts" type="ProjectCostType"/>

	<xsd:complexType name="ExtensionType">
			<xsd:sequence>
					<xsd:element ref="ExtensionID" minOccurs="0"/>
					<xsd:element ref="ExtensionMonitoringCosts" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="ExtensionPerformanceCosts" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
			</xsd:sequence>
	</xsd:complexType>
	
	<xsd:element name="ActivityMonitoringCosts" type="ProjectCostType"/>
	<xsd:element name="ActivityPerformanceCosts" type="ProjectCostType"/>
	<xsd:element name="Extensions" type="ExtensionType"/>        
	<xsd:element name="ControlCode" type="CodeType"/>
	<xsd:element name="CostComponentCode" type="CodeType"/>
	<xsd:element name="FinancialStatus" type="StatusType"/>
	<xsd:element name="TotalBudgetAmount" type="AmountType"/>
	<xsd:element name="TotalBudgetBaseAmount" type="AmountType"/>
	<xsd:element name="ActualCostAmount" type="AmountType"/>
	<xsd:element name="ActualCostBaseAmount" type="AmountType"/>
	<xsd:element name="PerformedCostAmount" type="AmountType"/>
	<xsd:element name="PerformedCostBaseAmount" type="AmountType"/>
	<xsd:element name="RemainingBudgetAmount" type="AmountType"/>
	<xsd:element name="RemainingBudgetBaseAmount" type="AmountType"/>
	<xsd:element name="ActualRevenueAmount" type="AmountType"/>
	<xsd:element name="ActualRevenueBaseAmount" type="AmountType"/>
	<xsd:element name="PlannedRevenueAmount" type="AmountType"/>
	<xsd:element name="PlannedRevenueBaseAmount" type="AmountType"/>
	<xsd:element name="WorkInProcessCostAmount" type="AmountType"/>
	<xsd:element name="WorkInProcessCostBaseAmount" type="AmountType"/>
	<xsd:element name="ForecastCostAmount" type="AmountType"/>
	<xsd:element name="ForecastCostBaseAmount" type="AmountType"/>
	<xsd:element name="VarianceAtCompletionAmount" type="AmountType"/>
	<xsd:element name="VarianceAtCompletionBaseAmount" type="AmountType"/>
	<xsd:element name="BudgetAtCompletionAmount" type="AmountType"/>
	<xsd:element name="BudgetAtCompletionBaseAmount" type="AmountType"/>
	<xsd:element name="ForecastExtraRevenueAmount" type="AmountType"/>
	<xsd:element name="ForecastExtraRevenueBaseAmount" type="AmountType"/>
	<xsd:element name="CostOfGoodsSoldAmount" type="AmountType"/>
	<xsd:element name="CostOfGoodsSoldBaseAmount" type="AmountType"/>
	<xsd:element name="RevenuesRecognizedAmount" type="AmountType"/>
	<xsd:element name="RevenuesRecognizedBaseAmount" type="AmountType"/>
	<xsd:element name="EstimateAtCompletionAmount" type="AmountType"/>
	<xsd:element name="EstimateAtCompletionBaseAmount" type="AmountType"/>
	<xsd:element name="EstimateToCompletionAmount" type="AmountType"/>
	<xsd:element name="EstimateToCompletionBaseAmount" type="AmountType"/>
	<xsd:element name="EstimateExtraCostAmount" type="AmountType"/>
	<xsd:element name="EstimateExtraCostBaseAmount" type="AmountType"/>
	<xsd:element name="CommitmentCostAmount" type="AmountType"/>
	<xsd:element name="CommitmentCostBaseAmount" type="AmountType"/>
	<xsd:element name="RegistrationDate" type="DateType"/>
	<xsd:element name="ExtensionID" type="IdentifierType"/>
	<xsd:element name="ExtensionMonitoringCosts" type="ProjectCostType"/>
	<xsd:element name="ExtensionPerformanceCosts" type="ProjectCostType"/>
	<xsd:element name="CostControlPeriod" type="FinancialPeriodType"/>
	<xsd:element name="FiscalPeriod" type="FinancialPeriodType"/>
	
	<!-- ProjectBid -->
	<xsd:element name="EstimateVersionID" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation>EstimateVersionID is used to reference the ProjectEstimate noun. </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="CostBaseAmount" type="AmountType"/>
	<xsd:element name="SalesAmount" type="AmountType"/>
	<xsd:element name="SalesBaseAmount" type="AmountType"/>
	<xsd:element name="ProfitMarginAmount" type="AmountType"/>
	<xsd:element name="ProfitMarginBaseAmount" type="AmountType"/>
	<xsd:element name="SalesTaxAmount" type="AmountType"/>
	<xsd:element name="SalesTaxBaseAmount" type="AmountType"/>
	<xsd:element name="ApprovedByPerson" type="PersonType"/>
	<xsd:element name="SubmittedDate" type="DateType"/>
	<xsd:element name="SuccessPercentage" type="PercentType"/>
	<xsd:element name="ExpirationDate" type="DateType"/>
	<xsd:element name="AccountedForCostAmount" type="AmountType"/>
	<xsd:element name="AccountedForCostBaseAmount" type="AmountType"/>
	<xsd:element name="AccountedForSalesAmount" type="AmountType"/>
	<xsd:element name="AccountedForSalesBaseAmount" type="AmountType"/>
	<xsd:element name="NetSalesAmount" type="AmountType"/>
	<xsd:element name="NetSalesBaseAmount" type="AmountType"/>
	<xsd:element name="ReasonCodeDescription" type="DescriptionType"/>
	<xsd:element name="LocationName" type="NameType"/>
	
	<!-- ProjectBudget -->
	<!--    There are 5 cost types in Projects where the costs can be booked - item , equipment, subcontracting, labor and sundry costs. Out of these five the item, equipment and subcontracting are maintained in the item master table. 'The item type' will sepcify whether it is item, equipment or subcontracting. 
		1. Item: The code that uniquely identifies the item.
		2. Equipment: A cost type that is required for resources, which is not consumed while the project is carried out. Examples of equipment are machinery and tools.
		3. Subcontracting: A cost type representing services purchased from a third party for use in a project.
		4. Labor: a cost type which a specific task.
		5. Sundry: a cost type which specifies indirect cost and costs that do not belong to other cost types are booked as sundry costs, for example, insurance costs. 
	-->        
	<xsd:element name="LaborCode" type="CodeType"/>
	<xsd:element name="SundryCode" type="CodeType"/>
	
	<xsd:element name="NetQuantity" type="QuantityType"/>
	<xsd:element name="ScrapPercent" type="PercentType"/>
	<xsd:element name="BudgetDate" type="DateType"/>
	<xsd:element name="CostComponentID" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation>Costcomponent is a 8 character code. This is used to aggregate data for reporting. </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="CostPrice" type="PriceABIEType"/>
	<xsd:element name="CostPriceBase" type="PriceABIEType"/>
	<xsd:element name="SalesPrice" type="PriceABIEType"/>
	<xsd:element name="SalesPriceBase" type="PriceABIEType"/>
	<xsd:element name="ExtendedSalesAmount" type="AmountType"/>
	<xsd:element name="ExtendedSalesBaseAmount" type="AmountType"/>
	<xsd:element name="TradeGroupCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>A group of resources with common skills that can be used for a particular labor. If you cannot yet make 
				detailed assignments for employees, you can use trade groups for scheduling.  Use Resource Group.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="EmployeePerson" type="PersonType">
		<xsd:annotation>
			<xsd:documentation >Holds information associated with an employee.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<!-- ProjectCosts -->
	<xsd:element name="ExtendedBaseCost" type="AmountType"/>
	<xsd:element name="ExtendedSales" type="AmountType"/>
	<xsd:element name="ExtendedBaseSales" type="AmountType"/>
	<xsd:element name="ProjectCostsPeriod" type="FinancialPeriodType"/>
	
	<!-- ProjectEstimate -->
	<xsd:element name="CreationDate" type="DateType"/>
	<xsd:element name="EstimationDate" type="DateType"/>
	<xsd:element name="VersionAmount" type="AmountType"/>
	<xsd:element name="VersionBaseAmount" type="AmountType"/>
	<xsd:element name="VersionPhaseID" type="IdentifierType"/>
	<xsd:element name="VersionPhaseDescription" type="DescriptionType"/>
	<xsd:element name="ProfitFeeAmount" type="AmountType"/>
	<xsd:element name="ProfitFeeBaseAmount" type="AmountType"/>
	<xsd:element name="ManagementReserveAmount" type="AmountType"/>
	<xsd:element name="ManagementReserveBaseAmount" type="AmountType"/>
	<xsd:element name="TopDownTotalCostAmount" type="AmountType"/>
	<xsd:element name="TopDownTotalCostBaseAmount" type="AmountType"/>
	<xsd:element name="BottomUpTotalCostAmount" type="AmountType"/>
	<xsd:element name="BottomUpTotalCostBaseAmount" type="AmountType"/>
	<xsd:element name="TopDownLandedCostAmount" type="AmountType"/>
	<xsd:element name="TopDownLandedCostBaseAmount" type="AmountType"/>
	<xsd:element name="BottomUpLandedCostAmount" type="AmountType"/>
	<xsd:element name="BottomUpLandedCostBaseAmount" type="AmountType"/>
	<xsd:element name="TopDownGrossSalesAmount" type="AmountType"/>
	<xsd:element name="TopDownGrossSalesBaseAmount" type="AmountType"/>
	<xsd:element name="BottomUpGrossSalesAmount" type="AmountType"/>
	<xsd:element name="BottomUpGrossSalesBaseAmount" type="AmountType"/>
	<xsd:element name="TopDownNetSalesAmount" type="AmountType"/>
	<xsd:element name="TopDownNetSalesBaseAmount" type="AmountType"/>
	<xsd:element name="BottomUpNetSalesAmount" type="AmountType"/>
	<xsd:element name="BottomUpNetSalesBaseAmount" type="AmountType"/>
	<xsd:element name="EstimateType" type="CodeType"/>
	<xsd:element name="AdjustmentFactor" type="NumericType"/>
	<xsd:element name="ProductionRate" type="NumericType"/>
	<xsd:element name="LaborRateCode" type="CodeType"/>
	<xsd:element name="SurchargeAmount" type="AmountType"/>
	<xsd:element name="SurchargeBaseAmount" type="AmountType"/>
	<xsd:element name="LandedCostAmount" type="AmountType"/>
	<xsd:element name="LandedCostBaseAmount" type="AmountType"/>
	<xsd:element name="EscalationAmount" type="AmountType"/>
	<xsd:element name="EscalationBaseAmount" type="AmountType"/>
	<xsd:element name="ContingencyAmount" type="AmountType"/>
	<xsd:element name="ContingencyBaseAmount" type="AmountType"/>
	<xsd:element name="PricingMethodCode" type="CodeType"/>
	<xsd:element name="MarkupPercent" type="PercentType"/>
	<xsd:element name="MarkupAmount" type="AmountType"/>
	<xsd:element name="MarkupBaseAmount" type="AmountType"/>
	<xsd:element name="ExpectedSalesDate" type="DateType"/>
	<xsd:element name="GrossSalesPrice" type="PriceABIEType"/>
	<xsd:element name="GrossSalesPriceBase" type="PriceABIEType"/>
	<xsd:element name="GrossSalesAmount" type="AmountType"/>
	<xsd:element name="GrossSalesBaseAmount" type="AmountType"/>
	<xsd:element name="DiscountBaseAmount" type="AmountType"/>
	<xsd:element name="NetSalesPrice" type="PriceABIEType"/>
	<xsd:element name="NetSalesPriceBase" type="PriceABIEType"/>
	<xsd:element name="ProfitPercent" type="PercentType"/>
	<xsd:element name="ProfitAmount" type="AmountType"/>
	<xsd:element name="ProfitBaseAmount" type="AmountType"/>
	<xsd:element name="EstimateStatus" type="StatusType"/>
	<xsd:element name="IncludeInScopeIndicator" type="IndicatorType"/>
	<xsd:element name="IncludeInCostIndicator" type="IndicatorType"/>
	<xsd:element name="IncludeInSalesIndicator" type="IndicatorType"/>
	<xsd:element name="EstimateLineNumber" type="IdentifierType"/>
	  
	<!-- ProjectExtension -->
	<xsd:element name="ContractDate" type="DateType"/>
	<xsd:element name="ContractAmount" type="AmountType"/>
	<xsd:element name="ContractBaseAmount" type="AmountType"/>
	<xsd:element name="InvoiceType" type="CodeType"/>
	<xsd:element name="HoldBackPercent" type="NumericType"/>
	<xsd:element name="CostOfGoodsMethod" type="CodeType"/>
	<xsd:element name="RevenueRecognitionMethod" type="CodeType"/>
	
	
	<!-- ProjectMaster -->
	<xsd:element name="ProjectHierarchyType" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Code includes single, main or sub project.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ContractType" type="CodeType"/>
	<xsd:element name="RelationshipType" type="CodeType"/>
	<xsd:element name="LagIndicator" type="IndicatorType"/>
	<xsd:element name="WorkStatus" type="StatusType">
		<xsd:annotation>
			<xsd:documentation>Free, no costs can be done on that. On Hold, work is 
				authorized and costs could have been charged but now no costs can 
				be charged to it. Released, costs can be charged to this activity. 
				Finished, no new costs can be charged but existing transactions can be processed. 
				Closed, no costs can be charged to this. </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ParentProject" type="ProjectReferenceType"/>
	<xsd:element name="ParentActivityID" type="IdentifierType"/>
	<xsd:element name="BudgetLineNumber" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation>Refers to the ProjectBudget's LineNumber. </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="SuccessorBudgetLineNumber" type="IdentifierType"/>
	<xsd:element name="MilestoneItemID" type="ItemIDType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The manufactured item in the 
				projects is linked to the milestone. The link makes it possible to detect the completion 
				of the manufactured item (in the bill of material) in your project scheduling.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="MilestoneLinkedActivityID" type="ItemIDType"/>
	<xsd:element name="LeadUnitCode" type="UnitCodeContentType">
		<xsd:annotation>
			<xsd:documentation>Unit of measure associated with the lead time.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="LagTimeDuration" type="DurationMeasureType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Lag time is a delay between activities 
				that have a dependency. You enter lag time as a positive value. Example if you need a two-day 
				delay between the finish of one activity and the start of another, you can establish a 
				finish-to-start dependency and specify the lag time as two days.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="LagUnitCode" type="UnitCodeContentType">
		<xsd:annotation>
			<xsd:documentation>Unit of measure associated with the lag time.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ProdecessorCostType" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Includes Item (= Material), Labor, Equipment, Subcontracting and Sundry cost.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="SuccessorCostType" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Includes Item (= Material), Labor, Equipment, Subcontracting and Sundry cost.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="EarnedValueMethodID" type="IdentifierType"/>
	<xsd:element name="BaselineID" type="IdentifierType"/>
	<xsd:element name="BaselineStatus" type="StatusType"/>
	<xsd:element name="BaselineApprovalDate" type="DateType"/>
	<xsd:element name="BaselineDerivedFrom" type="NormalizedStringType"/>
	<xsd:element name="BaselineCreationDate" type="DateType"/>
	<xsd:element name="BaselineLastUpdateDate" type="DateType"/>
	<xsd:element name="ActivityStartDate" type="DateType"/>
	<xsd:element name="ActivityFinishDate" type="DateType"/>
	<xsd:element name="ParentActivityDescription" type="DescriptionType"/>
	<xsd:element name="ActivityType" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>values work package, wbs element, project cost account, planning package, milestone.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="MilestoneIndicator" type="IndicatorType"/>
	<xsd:element name="TopActivityIndicator" type="IndicatorType"/>
	
	
</xsd:schema>
