<?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

        *****     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="StandardHeaderType">
                                <xsd:sequence>
                                        <xsd:element ref="CustomerParty" minOccurs="0"/>
                                        <xsd:element ref="RemitToParty" minOccurs="0"/>
                                        <xsd:element ref="PayFromParty" minOccurs="0"/>
                                        <xsd:element ref="ProjectPlan" 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:element name="Project" type="ProjectReferenceType"/>
        
        <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="RevenueDetail" minOccurs="0" maxOccurs="unbounded"/>
                        <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
        </xsd:complexType>
        <xsd:element name="ProjectActivity" type="ProjectActivityType"/>

        <xsd:complexType name="RevenueDetailType">
                <xsd:sequence>
                        <xsd:element ref="RevenueID" minOccurs="0"/>
                        <xsd:element ref="RevenueCodeID" minOccurs="0"/>
                        <xsd:element ref="RevenueAmount" minOccurs="0"/>
                        <xsd:element ref="RevenueBaseAmount" minOccurs="0"/>
                        <xsd:element ref="RevenueReportAmount" minOccurs="0"/>
                        <xsd:element ref="CostComponentID" minOccurs="0"/>
                        <xsd:element ref="RevenueDueDate" minOccurs="0"/>
                        <xsd:element ref="CostControlPeriod" minOccurs="0"/>
                        <xsd:element ref="FiscalPeriod" minOccurs="0"/>
                        <xsd:element ref="InvoiceReference" minOccurs="0" maxOccurs="unbounded"/>
                        <xsd:element ref="InvoiceType" minOccurs="0"/>
                        <xsd:element ref="ExtensionID" minOccurs="0" maxOccurs="unbounded"/>
                        <xsd:element ref="RevenueDescription" minOccurs="0" maxOccurs="unbounded"/>
                </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="RevenueCodeID" type="IdentifierType">
                <xsd:annotation>
                        <xsd:documentation>RevenueCodeID is ... </xsd:documentation>
                </xsd:annotation>
        </xsd:element>

        <xsd:element name="RevenueDueDate" type="DateType"/>
        <xsd:element name="RevenueDescription" type="DescriptionType"/>
        
</xsd:schema>
