<?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
23 Apr 2010    NO      New ProjectEstimateVersion noun...in progress.
27 Apr 2010    NO      Renamed from ProjectEstimateVersion to ProjectEstimate...in progress.

        *****     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="ProjectEstimate" type="ProjectEstimateType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">ProjectEstimate noun description here .... </xsd:documentation>
                </xsd:annotation>
        </xsd:element>

        <xsd:complexType name="ProjectEstimateType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2"/>
                </xsd:annotation>
                <xsd:complexContent>
                        <xsd:extension base="StandardHeaderType">
                                <xsd:sequence>
                                        <xsd:element ref="VersionStatus" minOccurs="0"/>
                                        <xsd:element ref="VersionID" minOccurs="0" maxOccurs="unbounded"/>
                                        <xsd:element ref="VersionDescription" minOccurs="0" maxOccurs="unbounded"/>
                                        <xsd:element ref="CreationDate" minOccurs="0"/>
                                        <xsd:element ref="EstimationDate" minOccurs="0"/>
                                        <xsd:element ref="VersionAmount" minOccurs="0"/>
                                        <xsd:element ref="VersionBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="VersionPhaseID" minOccurs="0"/>
                                        <xsd:element ref="VersionPhaseDescription" minOccurs="0"/>
                                        <xsd:element ref="ProfitFeeAmount" minOccurs="0"/>
                                        <xsd:element ref="ProfitFeeBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="ManagementReserveAmount" minOccurs="0"/>
                                        <xsd:element ref="ManagementReserveBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="TopDownTotalCostAmount" minOccurs="0"/>
                                        <xsd:element ref="TopDownTotalCostBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="BottomUpTotalCostAmount" minOccurs="0"/>
                                        <xsd:element ref="BottomUpTotalCostBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="TopDownLandedCostAmount" minOccurs="0"/>
                                        <xsd:element ref="TopDownLandedCostBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="BottomUpLandedCostAmount" minOccurs="0"/>
                                        <xsd:element ref="BottomUpLandedCostBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="TopDownGrossSalesAmount" minOccurs="0"/>
                                        <xsd:element ref="TopDownGrossSalesBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="BottomUpGrossSalesAmount" minOccurs="0"/>
                                        <xsd:element ref="BottomUpGrossSalesBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="TopDownNetSalesAmount" minOccurs="0"/>
                                        <xsd:element ref="TopDownNetSalesBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="BottomUpNetSalesAmount" minOccurs="0"/>
                                        <xsd:element ref="BottomUpNetSalesBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="Project" minOccurs="0"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </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="EstimateProjectType">
                <xsd:complexContent>
                        <xsd:extension base="ProjectReferenceType">
                                <xsd:sequence>
                                        <xsd:element ref="EstimateVersion" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>
        <xsd:element name="Project" type="EstimateProjectType"/>
        
        <xsd:complexType name="ProjectEstimateVersionType">
                <xsd:sequence>
                        <xsd:element ref="CustomerParty" minOccurs="0"/>
                        <xsd:element ref="EstimateDetail" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="EstimateVersion" type="ProjectEstimateVersionType"/>
        
        
        <xsd:complexType name="ProjectPlanType">
                <xsd:sequence>
                        <xsd:element ref="PlanID" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation>The plan is a three digit alpha numeric field.  All activities are under a plan code. </xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="ProjectActivity" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="ProjectPlan" type="ProjectPlanType"/>

        <xsd:complexType name="ProjectActivityType">
                <xsd:sequence>
                        <xsd:element ref="ActivityID" minOccurs="0"/>
                        <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="ProjectActivity" type="ProjectActivityType"/>

        <xsd:complexType name="EstimateDetailType">
                <xsd:sequence>
                        <xsd:element ref="ProjectPlan" minOccurs="0"/>
                        <xsd:element ref="EstimateType" minOccurs="0"/>
                        <xsd:element ref="CostType" minOccurs="0">
                                <xsd:annotation>
                                        <xsd:documentation>Includes Material, Labor, equipment, subcontracting or sundry. </xsd:documentation>
                                </xsd:annotation>
                        </xsd:element>
                        <xsd:element ref="Quantity" minOccurs="0"/>
                        <xsd:element ref="NetQuantity" minOccurs="0"/>
                        <xsd:element ref="ItemID" minOccurs="0"/>
                        <xsd:element ref="LaborCode" minOccurs="0"/>
                        <xsd:element ref="SundryCode" minOccurs="0"/>
                        <xsd:element ref="ScrapPercent" minOccurs="0"/>
                        <xsd:element ref="AdjustmentFactor" minOccurs="0"/>
                        <xsd:element ref="ProductionRate" minOccurs="0"/>
                        <xsd:element ref="LaborRateCode" minOccurs="0"/>
                        <xsd:element ref="CostPrice" minOccurs="0"/>
                        <xsd:element ref="CostPriceBase" minOccurs="0"/>
                        <xsd:element ref="CostAmount" minOccurs="0"/>
                        <xsd:element ref="CostBaseAmount" minOccurs="0"/>
                        <xsd:element ref="SurchargeAmount" minOccurs="0"/>
                        <xsd:element ref="SurchargeBaseAmount" minOccurs="0"/>
                        <xsd:element ref="SurchargePercent" minOccurs="0"/>
                        <xsd:element ref="LandedCostAmount" minOccurs="0"/>
                        <xsd:element ref="LandedCostBaseAmount" minOccurs="0"/>
                        <xsd:element ref="EscalationAmount" minOccurs="0"/>
                        <xsd:element ref="EscalationBaseAmount" minOccurs="0"/>
                        <xsd:element ref="ContingencyAmount" minOccurs="0"/>
                        <xsd:element ref="ContingencyBaseAmount" minOccurs="0"/>
                        <xsd:element ref="PricingMethodCode" minOccurs="0"/>
                        <xsd:element ref="MarkupPercent" minOccurs="0"/>
                        <xsd:element ref="MarkupAmount" minOccurs="0"/>
                        <xsd:element ref="MarkupBaseAmount" minOccurs="0"/>
                        <xsd:element ref="ExpectedSalesDate" minOccurs="0"/>
                        <xsd:element ref="GrossSalesPrice" minOccurs="0"/>
                        <xsd:element ref="GrossSalesPriceBase" minOccurs="0"/>
                        <xsd:element ref="GrossSalesAmount" minOccurs="0"/>
                        <xsd:element ref="GrossSalesBaseAmount" minOccurs="0"/>
                        <xsd:element ref="DiscountPercent" minOccurs="0"/>
                        <xsd:element ref="DiscountAmount" minOccurs="0"/>
                        <xsd:element ref="DiscountBaseAmount" minOccurs="0"/>
                        <xsd:element ref="NetSalesPrice" minOccurs="0"/>
                        <xsd:element ref="NetSalesPriceBase" minOccurs="0"/>
                        <xsd:element ref="NetSalesAmount" minOccurs="0"/>
                        <xsd:element ref="NetSalesBaseAmount" minOccurs="0"/>
                        <xsd:element ref="ProfitPercent" minOccurs="0"/>
                        <xsd:element ref="ProfitAmount" minOccurs="0"/>
                        <xsd:element ref="ProfitBaseAmount" minOccurs="0"/>
                        <xsd:element ref="IncludeInScopeIndicator" minOccurs="0"/>
                        <xsd:element ref="IncludeInCostIndicator" minOccurs="0"/>
                        <xsd:element ref="IncludeInSalesIndicator" minOccurs="0"/>
                        <xsd:element ref="EstimateLineNumber" minOccurs="0"/>
                        <xsd:element ref="TradeGroupID" minOccurs="0"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="EstimateDetail" type="EstimateDetailType"/>
        
        <xsd:element name="VersionStatus" type="StatusType"/>
        <xsd:element name="VersionID" type="IdentifierType">
                <xsd:annotation>
                        <xsd:documentation>Each project can have n no. of estimate version </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        <xsd:element name="VersionDescription" type="DescriptionType"/>
        <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="NetQuantity" type="QuantityType"/>
        <xsd:element name="ScrapPercent" type="PercentType"/>
        <xsd:element name="AdjustmentFactor" type="NumericType"/>
        <xsd:element name="ProductionRate" type="NumericType"/>
        <xsd:element name="LaborRateCode" type="CodeType"/>
        <xsd:element name="CostBaseAmount" type="AmountType"/>
        <xsd:element name="CostPrice" type="PriceABIEType"/>
        <xsd:element name="CostPriceBase" type="PriceABIEType"/>
        <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="NetSalesAmount" type="AmountType"/>
        <xsd:element name="NetSalesBaseAmount" type="AmountType"/>
        <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"/>
        
        <xsd:element name="TradeGroupID" type="IdentifierType">
                <xsd:annotation>
                        <xsd:documentation>Trade group is a three character code for what skill types of labor are being tracked. </xsd:documentation>
                </xsd:annotation>
        </xsd:element>
        
        <!--    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:schema>

