<?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:include schemaLocation="Person.xsd" />
	<xs:include schemaLocation="StorageLocation.xsd" />
	<xs:include schemaLocation="UserDefined.xsd" />
	<xs:element name="InventoryReceipt" type="InventoryReceiptType" />
	<xs:complexType name="InventoryReceiptType">
		<xs:annotation>
			<xs:documentation>InventoryReceipt
					Represents the receipt of a given quanity of a single type of item against a purchase order.  A box full of received items 
					would thus necessitate multiple InventoryReceipt nodes.
			</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="SiteId" type="xs:string" />
			<xs:element name="ReceivedBy" type="PersonType" />
			<xs:element name="ReceivedDateTime" type="xs:dateTime" />
			<xs:element name="PurchaseOrderId" type="xs:string" />
			<xs:element name="PurchaseOrderItemId" type="xs:string" />
			<xs:element name="StorageLocation" type="StorageLocationType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="ReceivedQty" type="xs:decimal" />
			<xs:element name="UserDefined" type="UserDefinedType" minOccurs="0" maxOccurs="unbounded" />
		</xs:sequence>
	</xs:complexType>
</xs:schema>
