<?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
10 Apr 2008    JB      Added correct Copyright and update comments to schema.
27 June 2013    Ajay    Added CanceledAmount,CanceledBaseAmount,CanceledReportingAmount at QuoteHeaderType(BOD 2155)
08 July 2013    Ajay    Added OpportunityReference at Header Level(BOD 1643)
12 Oct  2015    LA      Charge added to QuoteHeaderType, BOD-3059
12 Oct 2015     LA      ItemConfiguration added to QuoteLineType, BOD-3072
13 Oct 2015     LA      ExtendedCost added to QuoteLineType, BOD-3068
4 Aug 2016      LA      PricingAmount added to QuoteLineType, BOD-3156. 
                       Note - the ideal place for PricingAmount is along with UnitPrice in RequestLineType. 
                       It is not possible to add this now, since SalesOrderLine already has thsi element
                       at SalesOrderLineType !
        *****     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/OrderManagementComponents.xsd"/>

        <xsd:element name="Quote" type="QuoteType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Is a
                                document describing the prices of goods or services provided by a
                                vendor. The Quote includes the terms of the purchase, delivery
                                proposals, identification of goods or services ordered, as well as
                                their quantities.The Quote noun is used in conjunction with the RFQ
                                noun to form a Business-to-Business negotiation dialogue concerning
                                the goods or services specified.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>

        <xsd:element name="QuoteHeader" type="QuoteHeaderType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">-
                               Information that applies to the entire quote. </xsd:documentation>
                </xsd:annotation>
        </xsd:element>

        <xsd:element name="QuoteLine" type="QuoteLineType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The item or
                                product quoted along with quantity, price and other descriptive
                                information.</xsd:documentation>
                </xsd:annotation>
        </xsd:element>


        <xsd:complexType name="QuoteType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Defines the
                                Quote structure.</xsd:documentation>
                </xsd:annotation>
                <xsd:sequence>
                        <xsd:element ref="QuoteHeader" minOccurs="0"/>
                        <xsd:element ref="QuoteLine" minOccurs="0" maxOccurs="unbounded"/>
                </xsd:sequence>
        </xsd:complexType>

        <xsd:complexType name="QuoteHeaderType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Defines the
                                Quote Header structure.</xsd:documentation>
                </xsd:annotation>
                <xsd:complexContent>
                        <xsd:extension base="ProcurementHeaderType">
                                <xsd:sequence>
                                        <xsd:element ref="RFQReference" minOccurs="0"/>
                                        <xsd:element ref="EffectiveTimePeriod" minOccurs="0"/>
                                        <xsd:element ref="QualificationTerm" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="OrderCommission" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="Message" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                        <xsd:element ref="ExpectedDeliveryDate" minOccurs="0"/>
                                        <xsd:element ref="FollowUpDate" minOccurs="0"/>
                                        <xsd:element ref="LeadTimeDuration" minOccurs="0"/>
                                        <xsd:element ref="ProbabilityPercent" minOccurs="0"/>
                                        <xsd:element ref="UnitCost" minOccurs="0"/>
<!--                                        <xsd:element ref="Cost" minOccurs="0"/> -->
                                        <xsd:element ref="Charge" minOccurs="0" maxOccurs="unbounded"/>
                                        <xsd:element ref="Classification" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="SalesPersonReference" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="BaseCurrencyAmount" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="RemitToParty" minOccurs="0"/>
                                        <xsd:element ref="ExtendedPretaxAmount" minOccurs="0"/>
                                        <xsd:element ref="ExtendedPretaxBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="ExtendedPretaxReportAmount" minOccurs="0"/>

                                        <xsd:element ref="OpportunityReference" minOccurs="0"/>
                                        <!--Element added for BOD-1643  -->
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>

        <xsd:complexType name="QuoteLineType">
                <xsd:annotation>
                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Defines the
                                Quote Line structure.</xsd:documentation>
                </xsd:annotation>
                <xsd:complexContent>
                        <xsd:extension base="ProcurementLineType">
                                <xsd:sequence>
                                        <xsd:element ref="RFQReference" minOccurs="0"/>
                                        <xsd:element ref="EffectiveTimePeriod" minOccurs="0"/>
                                        <xsd:element ref="PromisedShipDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Indicates the date in which the
                                                  order line was promised to be
                                                  shipped from the supplier to the
                                                  customer.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="PromisedDeliveryDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Indicates the date in which the
                                                  order line was promised to be
                                                  delivered to the customer.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="DeliveryTimeTolerance" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Indicated the flexibility in the
                                                  delivery date that the requester
                                                  will of the Quote will allow in the
                                                  Line.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="OrderCommission" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="Message" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="QuoteSubLine" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="QuoteSchedule" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                        <xsd:element ref="OpportunityReference" minOccurs="0"/>
                                        <xsd:element ref="ProbabilityPercent" minOccurs="0"/>
                                        <xsd:element ref="UnitCost" minOccurs="0"/>
                                        <xsd:element ref="FixedPriceItemIndicator" minOccurs="0"/>
                                        <xsd:element ref="ExpensableItemIndicator" minOccurs="0"/>
                                        <xsd:element ref="AllocatedQuantity" minOccurs="0"/>
                                        <xsd:element ref="AllocatedBaseUOMQuantity" minOccurs="0"/>
                                        <xsd:element ref="UnitQuantityConversionFactor"
                                                minOccurs="0"/>
                                        <xsd:element ref="SupplierParty" minOccurs="0"/>
                                        <xsd:element ref="ShipFromParty" minOccurs="0"/>
                                        <xsd:element ref="RemitToParty" minOccurs="0"/>
                                        <xsd:element ref="BuyerParty" minOccurs="0"/>
                                        <xsd:element ref="PurchaseOrderReference" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="Allowance" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="Charge" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="ExtendedCost" minOccurs="0"/>
                                        <xsd:element ref="Classification" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="PricingAmount" minOccurs="0"/>
                                        <xsd:element ref="ItemConfiguration" minOccurs="0"/>
                                        <xsd:element ref="QuantityBreakPricing" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="BaseCurrencyAmount" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="ExtendedPretaxAmount" minOccurs="0"/>
                                        <xsd:element ref="ExtendedPretaxBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="ExtendedPretaxReportAmount" minOccurs="0"/>
                                        <xsd:element ref="ProjectReference" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>







</xsd:schema>
