<?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.
1  Nov 2012   NO      		Added CompanyInformationType for JIRA BOD-1552.
29 Aug 2013  Ajay      		Added KnownAsLocation to FleetAssetType
05 Sep 2013  Ravi.Ravuri	Added VIN to FleetAssetType and added AssetTag and type AssetTagType
        *****     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="./ManufacturingComponents.xsd"/>

	<xsd:complexType name="DefaultSourceType">
		<xsd:sequence>
			<xsd:choice>
				<xsd:element ref="SupplierParty" minOccurs="0"/>
				<xsd:element ref="WarehouseLocation" minOccurs="0"/>
				<xsd:element ref="ProductionLocation" minOccurs="0"/>
			</xsd:choice>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="HorizonsType">
		<xsd:sequence>
			<xsd:element ref="HorizonDuration" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="HorizonDurationType">
		<xsd:simpleContent>
			<xsd:extension base="DurationMeasureType">
				<xsd:attribute name="durationType" type="NormalizedStringType"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>

	<xsd:complexType name="ProcurementParametersType">
		<xsd:sequence>
			<xsd:element ref="ProcurementMethodCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation> Manufacture, Purchase, Transfer </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="DefaultSource" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation> This is the reference to the source. This can be a reference
						to a Location (with a plant or warehouse type) of the type specified by the
						Procurement Method, or a Supplier. </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ApprovedIndicator" minOccurs="0"/>
			<xsd:element ref="SourcingPriority" minOccurs="0"/>
			<xsd:element ref="SourcingPercentage" minOccurs="0"/>
			<xsd:element ref="DefaultSourceIndicator" minOccurs="0"/>
			<xsd:element ref="OrderMethodCode" minOccurs="0"/>
			<xsd:element ref="EffectiveTimePeriod" minOccurs="0"/>
			<xsd:element ref="OrderIncrementQuantity" minOccurs="0"/>
			<xsd:element ref="FixedOrderQuantity" minOccurs="0"/>
			<xsd:element ref="FixedOrderBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="MinOrderQuantity" minOccurs="0"/>
			<xsd:element ref="MinOrderBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="MaxOrderQuantity" minOccurs="0"/>
			<xsd:element ref="MaxOrderBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="PlanningMethodCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>This is the code for the planning method used for this item
						for a location. This will use the code PlanningMethod. The list of valid
						planning methods will be made available in the documentaiton. There should
						be the ability to turn off codes that are not available for the implemented
						package.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="LinePointQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The quantity of this item at which the purchasing system
						should include this item in a purchase plan for the purposes of making a
						planned buy.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="LinePointBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="OrderPointQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The quantity of this item at which the purchasing system
						should include this item on an emergency order.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="OrderPointBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="MinQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The quantity at which the item should be placed on a an order
						when using a Min/Max order method.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="MinBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="MaxQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The quantity the the order should put the stock level at when
						using the Min/Max order method. (Order quantity = Max Quantity - Stock
						Level)</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="MaxBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="SafetyStockQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The amount of stock that should remain in inventory at the
						lowest point of the planning cycle to cover variances is usage and supplier
						lead time.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="SafetyStockBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="SafetyStockDays" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The number of days that should be covered for normal usage by
						the safety stock.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="EOQQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation/>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="EOQBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="LeadTimeDuration" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation/>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="OrderCycleDuration" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation/>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="TransportLeadTimeDuration" minOccurs="0"/>
			<xsd:element ref="InspectionLeadTimeDuration" minOccurs="0"/>
			<xsd:element ref="Horizons" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation/>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="CreditAnalystPerson" type="PersonType">
		<xsd:annotation>
			<xsd:documentation>Identifies the credit analyst information of the person,
				organization, department, or group that planned for the timing of the exchange of
				goods/services that this document is associated at the document or line level.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="AssetIDsType">
		<xsd:sequence>
			<xsd:element ref="ManufacturerName" minOccurs="0"/>
			<xsd:element ref="ModelNumber" minOccurs="0"/>
			<xsd:element ref="SerialNumber" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="AssetIDs" type="AssetIDsType"/>
	<xsd:simpleType name="AssetTagType" >
		<xsd:restriction base="xsd:normalizedString">
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:element name="AssetTag" type="AssetTagType"/> <!--Element added for BOD-2437  -->
	<xsd:complexType name="AssetLinearMeasuresType">
		<xsd:sequence>
			<xsd:element ref="LengthMeasure" minOccurs="0"/>
			<xsd:element ref="LinearUnitOfMeasure" minOccurs="0"/>
			<xsd:element ref="ReferencePrecisionNumber" minOccurs="0"/>
			<xsd:element ref="GeographicalRegion" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:simpleType name="VINType" >
		<xsd:restriction base="xsd:normalizedString">
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:element name="VIN" type="VINType"/>
	<xsd:complexType name="FleetAssetType">
		<xsd:sequence>
			<xsd:element ref="VehicleIndicator" minOccurs="0"/>
			<xsd:element ref="VIN" minOccurs="0"/> <!--Element added for BOD-2437  -->
			<xsd:element ref="FleetCustomer" minOccurs="0"/>
			<xsd:element ref="VehicleStatus" minOccurs="0"/>
			<xsd:element ref="IssuedToPersonReference" minOccurs="0"/>
			<xsd:element ref="KnownAsLocation" minOccurs="0"/><!--Element added for BOD-2449  -->
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="StockCarryingCostType">
		<xsd:sequence>
			<xsd:element ref="Amount" minOccurs="0"/>
			<xsd:element ref="Duration" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="ItemPlanningType">
		<xsd:sequence>
			<xsd:element ref="PlanItemType" minOccurs="0"/>
			<xsd:element ref="PlanningLevel" minOccurs="0"/>
			<xsd:element ref="PlanningTimeFence" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="WorkShiftDayType">
		<xsd:sequence>
			<xsd:element ref="DayNumber" minOccurs="0"/>
			<xsd:element ref="StartTime" minOccurs="0"/>
			<xsd:element ref="WorkDuration" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="OtherLeadTimeDurationsType">
		<xsd:sequence>
			<xsd:element ref="TypedLeadTimeDuration" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="KnownAsLocation" type="LocationType"/>
	<xsd:element name="FleetAsset" type="FleetAssetType"/>
	<xsd:element name="AssetLinearMeasures" type="AssetLinearMeasuresType"/>
	<xsd:element name="GeographicalRegion" type="CodeType"/>
	<xsd:element name="ManufacturerName" type="NameType"/>
	<xsd:element name="PlanningMethodCode" type="CodeType"/>
	<xsd:element name="ProcurementMethodCode" type="CodeType"/>

	<xsd:element name="LinearUnitOfMeasure" type="UnitCodeContentType"/>

	<xsd:element name="DefaultSource" type="DefaultSourceType"/>

	<xsd:element name="OrderCycleDuration" type="DurationMeasureType"/>
	<xsd:element name="ObsolescenseDateTime" type="DateTimeType"/>
	<xsd:element name="BestByShelfLifeDuration" type="DurationMeasureType"/>
	<xsd:element name="SellByShelfLifeDuration" type="DurationMeasureType"/>
	<xsd:element name="QualityInspectionLeadTimeDuration" type="DurationMeasureType"/>

	<xsd:element name="SafetyStockDays" type="PositiveIntegerNumericType"/>


	<xsd:element name="Horizons" type="HorizonsType"/>
	<xsd:element name="HorizonDuration" type="HorizonDurationType"/>

	<xsd:element name="AddOns" type="ItemInstanceType"/>
	<xsd:element name="DefaultWarehouseLocation" type="LocationType"/>
	<xsd:element name="ProcurementParameters" type="ProcurementParametersType"/>
	<xsd:element name="AssignedToPersonReference" type="PersonReferenceType"/>
	<xsd:element name="DepreciationStatusCode" type="CodeType"/>
	<xsd:element name="FleetCustomer" type="CustomerPartyType"/>
	<xsd:element name="GasTrackedIndicator" type="IndicatorType"/>
	<xsd:element name="IssuedToPersonReference" type="PersonReferenceType"/>
	<xsd:element name="ModelNumber" type="NormalizedStringType"/>
	<xsd:element name="ReferencePrecisionNumber" type="IntegerNumericType"/>
	<xsd:element name="VehicleStatus" type="StatusType"/>
	<xsd:element name="InboundLeadTimeDuration" type="DurationMeasureType"/>
	<xsd:element name="PlanningTimeFence" type="DurationMeasureType"/>
	<xsd:element name="OutboundLeadTimeDuration" type="DurationMeasureType"/>
	<xsd:element name="NegativeStockAllowedIndicator" type="IndicatorType"/>

	<xsd:element name="SourcingPriority" type="CodeType"/>
	<xsd:element name="SourcingPercentage" type="NumericType"/>
	<xsd:element name="DefaultSourceIndicator" type="IndicatorType"/>
	<xsd:element name="OrderMethodCode" type="CodeType"/>
	<xsd:element name="OrderIncrementQuantity" type="QuantityType"/>
	<xsd:element name="PlanItemType" type="CodeType"/>
	<xsd:element name="PlanningLevel" type="PositiveIntegerNumericType"/>

	<xsd:element name="ItemPlanning" type="ItemPlanningType"/>
	<xsd:element name="FixedOrderQuantity" type="QuantityType"/>
	<xsd:element name="FixedOrderBaseUOMQuantity" type="QuantityType"/>
	<xsd:element name="MinOrderQuantity" type="QuantityType"/>
	<xsd:element name="MinOrderBaseUOMQuantity"  type="QuantityType"/>
	<xsd:element name="MaxOrderQuantity" type="QuantityType"/>
	<xsd:element name="MaxOrderBaseUOMQuantity" type="QuantityType"/>
	<xsd:element name="StockCarryingCost" type="StockCarryingCostType"/>

	<xsd:element name="DayNumber" type="PositiveIntegerNumericType"/>
	<xsd:element name="StartTime" type="TimeType"/>
	<xsd:element name="WorkDuration" type="DurationMeasureType"/>

	<xsd:element name="OtherLeadTimeDurations" type="OtherLeadTimeDurationsType"/>
	<xsd:element name="WorkShiftDay" type="WorkShiftDayType">
		<xsd:annotation>
			<xsd:documentation>WorkShift Day definition</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="EngineeringDrawingNumber" type="NormalizedStringType"/>
	<xsd:element name="CountryOfOrigin" type="CodeType"/>
	<xsd:element name="ShippingScheduleProfile" type="CodeType"/>
	<xsd:element name="ToleranceQualityPlusPercent" type="PercentType"/>
	<xsd:element name="ToleranceQualityMinusPercent" type="PercentType"/>
	<xsd:element name="ToleranceDatePlusDaysNumber" type="NonNegativeIntegerNumericType"/>
	<xsd:element name="ToleranceDateMinusDaysNumber" type="NonNegativeIntegerNumericType"/>
	<xsd:element name="TolerancePricePlusPercent" type="PercentType"/>
	<xsd:element name="Make" type="NormalizedStringType"/>
	<xsd:element name="InspectOnReceiptIndicator" type="IndicatorType"/>
	<xsd:element name="SupplierAccountNumber" type="NormalizedStringType"/>
	<xsd:element name="ReceiptRequiredIndicator" type="IndicatorType"/>
	<xsd:element name="SafetyLeadTime" type="DurationMeasureType"/>
	<xsd:element name="PurchaseLeadTimeAdjustmentDuration" type="DurationMeasureType"/>
	<xsd:element name="ReviewLeadTimeDuration" type="DurationMeasureType"/>
	<xsd:element name="ShipViaCode" type="CodeType"/>
	<xsd:element name="PreApprovedItemCode" type="CodeType"/>
	<xsd:element name="OEMProductNumber" type="NormalizedStringType"/>
	<xsd:element name="SpecificGravity" type="NumericType"/>
	<xsd:element name="SupplierCatalog" type="NormalizedStringType"/>
	<xsd:element name="AlternateItem" type="ItemType"/>
	<xsd:element name="PlanningScheduleProfile" type="CodeType"/>
	<xsd:element name="InspectionLeadTimeDuration" type="DurationMeasureType"/>
	<xsd:element name="TransportLeadTimeDuration" type="DurationMeasureType"/>

	<xsd:element name="CompanyInformation" type="CompanyInformationType"/>

	<xsd:complexType name="CompanyInformationType">
		<xsd:sequence>
			<xsd:element ref="NumberOfEmployees" minOccurs="0"/>
			<xsd:element ref="AnnualRevenue" minOccurs="0"/>
			<xsd:element ref="OwnershipTypeCode" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	

	<xsd:complexType name="SupplierItemSpecificsType">
		<xsd:sequence>
			<xsd:element ref="SupplierParty" minOccurs="0"/>
			<xsd:element ref="EngineeringDrawingNumber" minOccurs="0"/>
			<xsd:choice>
				<xsd:element ref="CountryAndPercent" minOccurs="0" maxOccurs="unbounded"/>
				<xsd:element ref="ComplexCountryOfOriginCode" minOccurs="0"/>
			</xsd:choice>
			<xsd:element ref="ShippingScheduleProfile" minOccurs="0"/>
			<xsd:element ref="ToleranceQualityPlusPercent" minOccurs="0"/>
			<xsd:element ref="ToleranceQualityMinusPercent" minOccurs="0"/>
			<xsd:element ref="ToleranceDatePlusDaysNumber" minOccurs="0"/>
			<xsd:element ref="ToleranceDateMinusDaysNumber" minOccurs="0"/>
			<xsd:element ref="TolerancePricePlusPercent" minOccurs="0"/>
			<xsd:element ref="Make" minOccurs="0"/>
			<xsd:element ref="Model" minOccurs="0"/>
			<xsd:element ref="InspectOnReceiptIndicator" minOccurs="0"/>
			<xsd:element ref="SupplierAccountNumber" minOccurs="0"/>
			<xsd:element ref="ReceiptRequiredIndicator" minOccurs="0"/>
			<xsd:element ref="SafetyLeadTime" minOccurs="0"/>
			<xsd:element ref="PurchaseLeadTimeAdjustmentDuration" minOccurs="0"/>
			<xsd:element ref="ReviewLeadTimeDuration" minOccurs="0"/>
			<xsd:element ref="ShipViaCode" minOccurs="0"/>
			<xsd:element ref="PreApprovedItemCode" minOccurs="0"/>
			<xsd:element ref="OEMProductNumber" minOccurs="0"/>
			<xsd:element ref="SpecificGravity" minOccurs="0"/>
			<xsd:element ref="SupplierCatalog" minOccurs="0"/>
			<xsd:element ref="AlternateItem" minOccurs="0"/>
			<xsd:element ref="PlanningScheduleProfile" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="SupplierItemSpecifics" type="SupplierItemSpecificsType"/>
	
	
	
	<xsd:element name="NumberOfEmployees" type="PositiveIntegerNumericType"/>
	<xsd:element name="AnnualRevenue" type="AmountType"/>
	<xsd:element name="OwnershipTypeCode" type="CodeType"/>
	<xsd:element name="TypedLeadTimeDuration" type="HorizonDurationType"/>
</xsd:schema>
