<?xml version="1.0" encoding="utf-8" ?>
<module>
	<id>VirtoCommerce.Orders</id>
	<version>2.7.0</version>
	<platformVersion>2.7.0</platformVersion>
	<dependencies>
		<dependency id="VirtoCommerce.Core" version="2.7.0" />
	</dependencies>

	<title>Order module</title>
	<description>Document based flexible orders management functionality</description>
	<authors>
		<author>Virto Commerce</author>
	</authors>
	<owners>
		<owner>Virto Commerce</owner>
	</owners>
	<projectUrl>http://virtocommerce.com/</projectUrl>
  <iconUrl>Modules/$(VirtoCommerce.Orders)/Content/logo.png</iconUrl>
	<releaseNotes>First version.</releaseNotes>
	<copyright>Copyright © 2011-2015 Virto Commerce. All rights reserved</copyright>
	<tags>order system</tags>

	<assemblyFile>VirtoCommerce.OrderModule.Web.dll</assemblyFile>
	<moduleType>VirtoCommerce.OrderModule.Web.Module, VirtoCommerce.OrderModule.Web</moduleType>
	<styles>
		<directory virtualPath="$/Content/css" searchPattern="*.css" searchSubdirectories="true" />
	</styles>
	<scripts>
		<directory virtualPath="$/Scripts" searchPattern="*.js" searchSubdirectories="true" />
	</scripts>

	<settings>
		<group name="Orders|General">
			<setting>
				<name>Order.Status</name>
				<valueType>string</valueType>
				<defaultValue>New</defaultValue>
				<title>Customer order statuses</title>
				<description>Customer order statuses</description>
				<isArray>true</isArray>
				<arrayValues>
					<value>New</value>
					<value>Processing</value>
					<value>Cancelled</value>
					<value>Completed</value>
				</arrayValues>
			</setting>
			<setting>
				<name>Shipment.Status</name>
				<valueType>string</valueType>
				<defaultValue>New</defaultValue>
				<title>Shipment statuses</title>
				<description>Shipment statuses</description>
				<isArray>true</isArray>
				<arrayValues>
					<value>New</value>
					<value>PickPack</value>
					<value>Cancelled</value>
					<value>ReadyToSend</value>
					<value>Send</value>
				</arrayValues>
			</setting>
			<setting>
				<name>PaymentIn.Status</name>
				<valueType>string</valueType>
				<defaultValue>New</defaultValue>
				<title>Payment statuses</title>
				<description>Incoming payment statuses</description>
				<isArray>true</isArray>
				<arrayValues>
					<value>New</value>
					<value>Pending</value>
					<value>Authorized</value>
					<value>Paid</value>
					<value>PartiallyRefunded</value>
					<value>Refunded</value>
					<value>Voided</value>
					<value>Custom</value>
					<value>Cancelled</value>
				</arrayValues>
			</setting>
		  <setting>
			<name>Order.CustomerOrderNewNumberTemplate</name>
			<valueType>string</valueType>
			<defaultValue>CO{0:yyMMdd}-{1:D5}</defaultValue>
			<title>New Customer Order number template (e.g., "CO{0:yyMMdd}-{1:D5}")</title>
			<description>The template (pattern) that will be used to generate the number for new Customer Order. Parameters: 0 - date (the UTC time of number generation); 1 - the sequence number.</description>
		  </setting>
		  <setting>
			<name>Order.ShipmentNewNumberTemplate</name>
			<valueType>string</valueType>
			<defaultValue>SH{0:yyMMdd}-{1:D5}</defaultValue>
			<title>New Shipment number template (e.g., "SH{0:yyMMdd}-{1:D5}")</title>
			<description>The template (pattern) that will be used to generate the number for new Shipment. Parameters: 0 - date (the UTC time of number generation); 1 - the sequence number.</description>
		  </setting>
		  <setting>
			<name>Order.PaymentInNewNumberTemplate</name>
			<valueType>string</valueType>
			<defaultValue>PI{0:yyMMdd}-{1:D5}</defaultValue>
			<title>New incoming Payment number template (e.g., "PI{0:yyMMdd}-{1:D5}")</title>
			<description>The template (pattern) that will be used to generate the number for new incoming Payment. Parameters: 0 - date (the UTC time of number generation); 1 - the sequence number.</description>
		  </setting>
			<setting>
				<name>Order.ExportImport.Description</name>
				<valueType>string</valueType>
				<defaultValue>Export/Import customer orders with all related objects (line items, shipments, payments etc)</defaultValue>
				<title>Export/Import description</title>
				<description>Module description in platform export/import wizard</description>
			</setting>
		</group>
	</settings>
	<permissions>
		<group name="Order">
			<permission id="order:access" name="Open orders menu" description="Permission to open orders menu."/>
      <permission id="order:create" name="Create order data" description="Permission to create order data."/>
      <permission id="order:read" name="View order data" description="Permission to browse and view order data."/>
      <permission id="order:update" name="Update order data" description="Permission to update order data."/>
      <permission id="order:delete" name="Delete order" description="Permission to delete orders."/>
    </group>
	</permissions>
</module>
