<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.eamxml.org/schema/Rev0" targetNamespace="http://www.eamxml.org/schema/Rev0" elementFormDefault="qualified">
	<xs:annotation>
		<xs:documentation>EAMXML.org Representation of a Requisition document.  A Requisition represents a request from an end user for a good, service or item from a Organizationl Warehouse or Supplier
		</xs:documentation>
	</xs:annotation>
	<xs:include schemaLocation="CommonTypes.xsd"/>
	<xs:include schemaLocation="CostAssociation.xsd"/>
	<xs:include schemaLocation="Address.xsd"/>
	<xs:include schemaLocation="Contact.xsd"/>
	<xs:include schemaLocation="Person.xsd"/>
	<xs:include schemaLocation="StorageLocation.xsd"/>
	<xs:include schemaLocation="Position.xsd"/>
	<xs:include schemaLocation="Answer.xsd"/>
	<xs:include schemaLocation="Supplier.xsd"/>
	<xs:include schemaLocation="UserDefined.xsd"/>
	<xs:element name="Requisition" type="RequisitionType"/>
	<xs:complexType name="RequisitionType">
		<xs:sequence>
			<xs:element name="Type" type="xs:string" minOccurs="0"/>
			<xs:element name="Site" type="xs:string" minOccurs="0"/>
			<xs:element name="Status" type="xs:string" minOccurs="0"/>
			<xs:element name="DeliveryInstructions" type="DeliveryInstructionsType" minOccurs="0"/>
			<xs:element name="DeliveryLocation" type="AddressType" minOccurs="0"/>
			<xs:element name="MaterialGroupCode" type="xs:string" minOccurs="0"/>
			<xs:element name="RequiredByDateTime" type="xs:dateTime"/>
			<xs:element name="UseByDateTime" type="xs:dateTime" minOccurs="0"/>
			<xs:element name="Priority" type="xs:string" minOccurs="0"/>
			<xs:element name="PriorityDescription" type="xs:string" minOccurs="0"/>
			<xs:element name="RequestedBy" type="PersonType" minOccurs="0"/>
			<xs:element name="RequestedByPosition" type="xs:string" minOccurs="0"/>
			<xs:element name="CreatedBy" type="PersonType" minOccurs="0"/>
			<xs:element name="CreatedDateTime" type="xs:dateTime" minOccurs="0"/>
			<xs:element name="ModifiedBy" type="PersonType" minOccurs="0"/>
			<xs:element name="ModifiedByDateTime" type="xs:dateTime" minOccurs="0"/>
			<xs:element name="AuthorizedBy" type="PersonType" minOccurs="0"/>
			<xs:element name="PurchasingOfficer" type="PersonType" minOccurs="0"/>
			<xs:element name="AuthorizedDateTime" type="xs:dateTime" minOccurs="0"/>
			<xs:element name="AuthorizedStatus" type="xs:string" minOccurs="0"/>
			<xs:element name="OriginatingStorageLocation" type="StorageLocationType" minOccurs="0"/>
			<xs:element name="SuggestedSupplier" type="SupplierType" minOccurs="0"/>
			<xs:element name="TransactionType" type="xs:string" minOccurs="0"/>
			<xs:element name="ExpediteCode" type="xs:string" minOccurs="0"/>
			<xs:element name="FreightCode" type="xs:string" minOccurs="0"/>
			<xs:element name="CurrencyCode" type="xs:string" minOccurs="0"/>
			<xs:element name="NumberOfItems" type="xs:unsignedInt" minOccurs="0"/>
			<xs:element name="NumberOfItemsCompleted" type="xs:unsignedInt" minOccurs="0"/>
			<xs:element name="TotalRequisitionCost" type="xs:decimal" minOccurs="0"/>
			<xs:element name="AnswerType" type="AnswerType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="CostAssociation" type="CostAssociationType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="UserDefined" type="UserDefinedType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="RequisitionItems">
				<xs:complexType>
					<xs:sequence minOccurs="0" maxOccurs="unbounded">
						<xs:element name="RequisitionItem" type="RequisitionItemType"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="RequisitionId" type="xs:string"/>
	</xs:complexType>
	<xs:complexType name="RequisitionItemType">
		<xs:sequence>
			<xs:element name="ItemType" type="xs:string" minOccurs="0"/>
			<xs:element name="CatalogItemId" type="xs:string" minOccurs="0"/>
			<xs:element name="ItemCategory" type="xs:string" minOccurs="0"/>
			<xs:element name="ManufacturerCode" type="xs:string" minOccurs="0"/>
			<xs:element name="ManufacturerPartNumber" type="xs:string" minOccurs="0"/>
			<xs:element name="UnitOfMeasure" type="UnitOfMeasureType" minOccurs="0"/>
			<xs:element name="Description" type="xs:string" minOccurs="0"/>
			<xs:element name="MaterialGroupClass" type="xs:string" minOccurs="0"/>
			<xs:element name="Status" type="xs:string" minOccurs="0"/>
			<xs:element name="SupplierVerifiedPrice" type="xs:boolean" minOccurs="0"/>
			<xs:element name="PartialIssue" type="xs:boolean" minOccurs="0"/>
			<xs:element name="DeliveryInstructions" type="DeliveryInstructionsType" minOccurs="0"/>
			<xs:element name="PriorityCode" type="xs:string" minOccurs="0"/>
			<xs:element name="PurchasingOfficer" type="PersonType" minOccurs="0"/>
			<xs:element name="SuggestedSupplier" type="SupplierType" minOccurs="0"/>
			<xs:element name="CreatedBy" type="PersonType" minOccurs="0"/>
			<xs:element name="CreatedDateTime" type="xs:dateTime" minOccurs="0"/>
			<xs:element name="ModifiedBy" type="PersonType" minOccurs="0"/>
			<xs:element name="ModifiedByDateTime" type="xs:dateTime" minOccurs="0"/>
			<xs:element name="AuthorizedBy" type="PersonType" minOccurs="0"/>
			<xs:element name="AuthorizedDateTime" type="xs:dateTime" minOccurs="0"/>
			<xs:element name="AuthorizedStatus" type="xs:string" minOccurs="0"/>
			<xs:element name="DeliveryStorageLocation" type="StorageLocationType" minOccurs="0"/>
			<xs:element name="OriginatingStorageLocation" type="StorageLocationType" minOccurs="0"/>
			<xs:element name="QuantityOrdered" type="xs:decimal" minOccurs="0"/>
			<xs:element name="QuantityReceived" type="xs:decimal" minOccurs="0"/>
			<xs:element name="QuantityIssued" type="xs:decimal" minOccurs="0"/>
			<xs:element name="CurrencyCode" type="xs:string" minOccurs="0"/>
			<xs:element name="EstimatedUnitPrice" type="xs:decimal" minOccurs="0"/>
			<xs:element name="EstimatedTotalCost" type="xs:decimal" minOccurs="0"/>
			<xs:element name="RequirementSequenceNumber" type="RequirementSequenceType" minOccurs="0"/>
			<xs:element name="CostAssociation" type="CostAssociationType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="UserDefined" type="UserDefinedType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="LeadTime" type="xs:unsignedInt" minOccurs="0"/>
		</xs:sequence>
		<xs:attribute name="Id"/>
	</xs:complexType>
</xs:schema>

