Files
ofbiz-plugins/ecommerce/data/DemoOrderTestData.xml
T
Vikas Mayur 6c1ee2a301 Another new feature from Pranay and Co.
Now Order reservation can be changed manually by setting priority (new field priority on OrderHeader and OrderItemShipGrpInvRes) for the order. This way few orders can be
fulfilled while waiting for sufficient inventory to fulfill large orders.

Applied patch from OFBIZ-2224 (https://issues.apache.org/jira/browse/OFBIZ-2224).
Thanks Pratik Khera and Pranay Pandey.

i18n Note: This commit has three new labels (IMO, they can be moved to common component with names something like CommonHigh, CommonLow etc.)

Pratik, I have done minor changes in the service and they are
1) Used <if-empty field=""> instead of <if> <condition> <if-empty> as this makes the logic more clearer.
2) Removed <condition-list> because their is only one expression in the <entity-condition>
3) Added <clear-field> in the iteration, to make sure that always a new value will be set in the map that is passed to a service and <store-value>  



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@756001 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 13:58:08 +00:00

85 lines
15 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<entity-engine-xml>
<!--Demo data for a sales order -->
<OrderHeader orderId="DEMO10090" orderTypeId="SALES_ORDER" orderName="" salesChannelEnumId="WEB_SALES_CHANNEL" orderDate="2008-04-23 16:49:27.392" entryDate="2008-04-23 16:49:27.392" priority="2" visitId="10002" statusId="ORDER_APPROVED" createdBy="admin" currencyUom="USD" webSiteId="OrderEntry" productStoreId="9000" remainingSubTotal="12.45" grandTotal="12.45" lastUpdatedStamp="2008-04-23 16:49:33.196" lastUpdatedTxStamp="2008-04-23 16:49:33.118" createdStamp="2008-04-23 16:49:27.716" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderItem orderId="DEMO10090" orderItemSeqId="00001" orderItemTypeId="PRODUCT_ORDER_ITEM" productId="GZ-2644" prodCatalogId="DemoCatalog" isPromo="N" quantity="1.0" selectedAmount="0.0" unitPrice="38.4" unitListPrice="48.0" isModifiedPrice="N" itemDescription="Round Gizmo" correspondingPoId="" statusId="ITEM_APPROVED" lastUpdatedStamp="2008-04-23 16:49:33.514" lastUpdatedTxStamp="2008-04-23 16:49:33.484" createdStamp="2008-04-23 16:49:28.128" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderItemPriceInfo orderItemPriceInfoId="9000" orderId="DEMO10090" orderItemSeqId="00001" productPriceRuleId="9000" productPriceActionSeqId="01" modifyAmount="-9.600000000000001" description="[PRODUCT_CATEGORY_IDIsPROMOTIONS] [list:48.0;avgCost:48.0;margin:0.0] [type:PRICE_POL]" lastUpdatedStamp="2008-04-23 16:49:28.682" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.682" createdTxStamp="2008-04-23 16:49:27.349"/>
<PartyRole partyId="DemoCustomer" roleTypeId="END_USER_CUSTOMER"/>
<PartyRole partyId="DemoCustomer" roleTypeId="SHIP_TO_CUSTOMER"/>
<PartyRole partyId="DemoCustomer" roleTypeId="PLACING_CUSTOMER"/>
<OrderRole orderId="DEMO10090" partyId="Company" roleTypeId="BILL_FROM_VENDOR" lastUpdatedStamp="2008-04-23 16:49:28.808" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.808" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderRole orderId="DEMO10090" partyId="DemoCustomer" roleTypeId="BILL_TO_CUSTOMER" lastUpdatedStamp="2008-04-23 16:49:28.807" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.807" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderRole orderId="DEMO10090" partyId="DemoCustomer" roleTypeId="END_USER_CUSTOMER" lastUpdatedStamp="2008-04-23 16:49:28.816" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.816" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderRole orderId="DEMO10090" partyId="DemoCustomer" roleTypeId="PLACING_CUSTOMER" lastUpdatedStamp="2008-04-23 16:49:28.799" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.799" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderRole orderId="DEMO10090" partyId="DemoCustomer" roleTypeId="SHIP_TO_CUSTOMER" lastUpdatedStamp="2008-04-23 16:49:28.812" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.812" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderItemShipGroup orderId="DEMO10090" shipGroupSeqId="00001" shipmentMethodTypeId="NEXT_DAY" carrierPartyId="UPS" carrierRoleTypeId="CARRIER" contactMechId="9015" maySplit="N" giftMessage="" isGift="N" lastUpdatedStamp="2008-04-23 16:49:28.412" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.412" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderItemShipGroupAssoc orderId="DEMO10090" orderItemSeqId="00001" shipGroupSeqId="00001" quantity="1.0" lastUpdatedStamp="2008-04-23 16:49:28.454" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.454" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderItemShipGrpInvRes orderId="DEMO10090" shipGroupSeqId="00001" orderItemSeqId="00001" inventoryItemId="9001" reserveOrderEnumId="INVRO_FIFO_REC" quantity="1.0" quantityNotAvailable="0.0" reservedDatetime="2008-04-23 16:49:31.474" createdDatetime="2008-04-23 16:49:31.474" promisedDatetime="2008-05-08 16:49:27.392" priority="2" lastUpdatedStamp="2008-04-23 16:49:31.474" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:31.474" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderAdjustment orderAdjustmentId="9000" orderAdjustmentTypeId="PROMOTION_ADJUSTMENT" orderId="DEMO10090" orderItemSeqId="00001" shipGroupSeqId="_NA_" amount="-38.4" productPromoId="9016" productPromoRuleId="01" productPromoActionSeqId="01" createdDate="2008-04-23 16:49:27.866" createdByUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:28.271" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.271" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderAdjustment orderAdjustmentId="9001" orderAdjustmentTypeId="SHIPPING_CHARGES" orderId="DEMO10090" orderItemSeqId="_NA_" shipGroupSeqId="00001" amount="12.45" createdDate="2008-04-23 16:49:27.866" createdByUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:28.431" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.431" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderPaymentPreference orderPaymentPreferenceId="9000" orderId="DEMO10090" paymentMethodTypeId="CREDIT_CARD" paymentMethodId="9015" presentFlag="N" swipedFlag="N" overflowFlag="N" maxAmount="12.45" processAttempt="1" statusId="PAYMENT_AUTHORIZED" needsNsfRetry="N" createdDate="2008-04-23 16:49:27.966" createdByUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:33.08" lastUpdatedTxStamp="2008-04-23 16:49:32.415" createdStamp="2008-04-23 16:49:28.844" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderStatus orderStatusId="9000" statusId="ORDER_CREATED" orderId="DEMO10090" statusDatetime="2008-04-23 16:49:27.392" statusUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:28.025" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.025" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderStatus orderStatusId="9001" statusId="ITEM_CREATED" orderId="DEMO10090" orderItemSeqId="00001" statusDatetime="2008-04-23 16:49:27.392" statusUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:28.203" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.203" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderStatus orderStatusId="9002" statusId="PAYMENT_NOT_AUTH" orderId="DEMO10090" orderPaymentPreferenceId="9000" statusDatetime="2008-04-23 16:49:29.008" statusUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:29.008" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:29.008" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderStatus orderStatusId="9003" statusId="PAYMENT_NOT_AUTH" orderId="DEMO10090" orderPaymentPreferenceId="9000" statusDatetime="2008-04-23 16:49:32.498" statusUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:32.498" lastUpdatedTxStamp="2008-04-23 16:49:32.415" createdStamp="2008-04-23 16:49:32.498" createdTxStamp="2008-04-23 16:49:32.415"/>
<OrderStatus orderStatusId="9004" statusId="PAYMENT_AUTHORIZED" orderId="DEMO10090" orderPaymentPreferenceId="9000" statusDatetime="2008-04-23 16:49:33.094" statusUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:33.094" lastUpdatedTxStamp="2008-04-23 16:49:32.415" createdStamp="2008-04-23 16:49:33.094" createdTxStamp="2008-04-23 16:49:32.415"/>
<OrderStatus orderStatusId="9005" statusId="ORDER_APPROVED" orderId="DEMO10090" statusDatetime="2008-04-23 16:49:33.196" statusUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:33.199" lastUpdatedTxStamp="2008-04-23 16:49:33.118" createdStamp="2008-04-23 16:49:33.199" createdTxStamp="2008-04-23 16:49:33.118"/>
<OrderStatus orderStatusId="9006" statusId="ITEM_APPROVED" orderId="DEMO10090" orderItemSeqId="00001" statusDatetime="2008-04-23 16:49:33.513" statusUserLogin="admin" lastUpdatedStamp="2008-04-23 16:49:33.525" lastUpdatedTxStamp="2008-04-23 16:49:33.484" createdStamp="2008-04-23 16:49:33.525" createdTxStamp="2008-04-23 16:49:33.484"/>
<OrderContactMech orderId="DEMO10090" contactMechPurposeTypeId="BILLING_LOCATION" contactMechId="9015" lastUpdatedStamp="2008-04-23 16:49:28.817" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.817" createdTxStamp="2008-04-23 16:49:27.349"/>
<OrderContactMech orderId="DEMO10090" contactMechPurposeTypeId="ORDER_EMAIL" contactMechId="9023" lastUpdatedStamp="2008-04-23 16:49:32.181" lastUpdatedTxStamp="2008-04-23 16:49:32.164" createdStamp="2008-04-23 16:49:32.181" createdTxStamp="2008-04-23 16:49:32.164"/>
<OrderContactMech orderId="DEMO10090" contactMechPurposeTypeId="ORDER_EMAIL" contactMechId="9026" lastUpdatedStamp="2008-04-23 16:49:32.173" lastUpdatedTxStamp="2008-04-23 16:49:32.164" createdStamp="2008-04-23 16:49:32.173" createdTxStamp="2008-04-23 16:49:32.164"/>
<OrderContactMech orderId="DEMO10090" contactMechPurposeTypeId="SHIPPING_LOCATION" contactMechId="9015" lastUpdatedStamp="2008-04-23 16:49:28.332" lastUpdatedTxStamp="2008-04-23 16:49:27.349" createdStamp="2008-04-23 16:49:28.332" createdTxStamp="2008-04-23 16:49:27.349"/>
<!-- Purchase order test data -->
<!--for jira issue - 1782-->
<OrderHeader orderId="DEMO10091" orderTypeId="PURCHASE_ORDER" orderName="New Purchase Order" salesChannelEnumId="UNKNWN_SALES_CHANNEL" orderDate="2008-06-10 13:27:07.024" entryDate="2008-06-10 13:27:07.024" visitId="10000" statusId="ORDER_CREATED" createdBy="admin" currencyUom="USD" webSiteId="OrderEntry" productStoreId="9000" remainingSubTotal="108.0" grandTotal="108.0" lastUpdatedStamp="2008-06-10 13:27:07.562" lastUpdatedTxStamp="2008-06-10 13:27:07.477" createdStamp="2008-06-10 13:27:07.158" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderItem orderId="DEMO10091" orderItemSeqId="00001" orderItemTypeId="PRODUCT_ORDER_ITEM" productId="GZ-2644" prodCatalogId="DemoCatalog" isPromo="N" quantity="5.0" selectedAmount="0.0" unitPrice="21.6" unitListPrice="0.0" isModifiedPrice="N" itemDescription="GZ-2644-5 Round Gizmo" statusId="ITEM_CREATED" lastUpdatedStamp="2008-06-10 13:27:07.247" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.247" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderItemPriceInfo orderItemPriceInfoId="10001" orderId="DEMO10091" orderItemSeqId="00001" description="SupplierProduct [minimumOrderQuantity:5.0, lastPrice: 21.6]" lastUpdatedStamp="2008-06-10 13:27:07.38" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.38" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderItemPriceInfo orderItemPriceInfoId="10002" orderId="DEMO10091" orderItemSeqId="00001" description="SupplierProduct [minimumOrderQuantity:0.0, lastPrice: 24.0]" lastUpdatedStamp="2008-06-10 13:27:07.388" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.388" createdTxStamp="2008-06-10 13:27:07.022"/>
<PartyRole partyId="DemoSupplier" roleTypeId="BILL_FROM_VENDOR"/>
<PartyRole partyId="DemoSupplier" roleTypeId="SHIP_FROM_VENDOR"/>
<PartyRole partyId="DemoSupplier" roleTypeId="SUPPLIER_AGENT"/>
<OrderRole orderId="DEMO10091" partyId="Company" roleTypeId="BILL_TO_CUSTOMER" lastUpdatedStamp="2008-06-10 13:27:07.408" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.408" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderRole orderId="DEMO10091" partyId="DemoSupplier" roleTypeId="BILL_FROM_VENDOR" lastUpdatedStamp="2008-06-10 13:27:07.423" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.423" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderRole orderId="DEMO10091" partyId="DemoSupplier" roleTypeId="SHIP_FROM_VENDOR" lastUpdatedStamp="2008-06-10 13:27:07.427" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.427" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderRole orderId="DEMO10091" partyId="DemoSupplier" roleTypeId="SUPPLIER_AGENT" lastUpdatedStamp="2008-06-10 13:27:07.431" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.431" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderItemShipGroup orderId="DEMO10091" shipGroupSeqId="00001" shipmentMethodTypeId="NO_SHIPPING" carrierPartyId="_NA_" carrierRoleTypeId="CARRIER" contactMechId="9200" maySplit="N" isGift="N" lastUpdatedStamp="2008-06-10 13:27:07.326" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.326" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderItemShipGroupAssoc orderId="DEMO10091" orderItemSeqId="00001" shipGroupSeqId="00001" quantity="5.0" lastUpdatedStamp="2008-06-10 13:27:07.363" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.363" createdTxStamp="2008-06-10 13:27:07.022"/>
<!-- for jira issue - 1784 -->
<Payment paymentId="9000" paymentTypeId="VENDOR_PAYMENT" paymentMethodTypeId="EFT_ACCOUNT" partyIdFrom="Company" partyIdTo="DemoSupplier" statusId="PMNT_NOT_PAID" effectiveDate="2006-04-25 12:56:54.292" amount="190.97" currencyUomId="USD" lastUpdatedStamp="2008-06-10 12:59:10.96" lastUpdatedTxStamp="2008-06-10 12:59:10.661" createdStamp="2008-06-10 12:59:10.96" createdTxStamp="2008-06-10 12:59:10.661"/>
<OrderStatus orderStatusId="9007" statusId="ORDER_CREATED" orderId="DEMO10091" statusDatetime="2008-06-10 13:27:07.024" statusUserLogin="admin" lastUpdatedStamp="2008-06-10 13:27:07.221" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.221" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderStatus orderStatusId="9008" statusId="ITEM_CREATED" orderId="DEMO10091" orderItemSeqId="00001" statusDatetime="2008-06-10 13:27:07.024" statusUserLogin="admin" lastUpdatedStamp="2008-06-10 13:27:07.279" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.279" createdTxStamp="2008-06-10 13:27:07.022"/>
<OrderContactMech orderId="DEMO10091" contactMechPurposeTypeId="SHIPPING_LOCATION" contactMechId="9200" lastUpdatedStamp="2008-06-10 13:27:07.294" lastUpdatedTxStamp="2008-06-10 13:27:07.022" createdStamp="2008-06-10 13:27:07.294" createdTxStamp="2008-06-10 13:27:07.022"/>
<Shipment shipmentId="9999" shipmentTypeId="PURCHASE_SHIPMENT" statusId="PURCH_SHIP_CREATED" primaryOrderId="DEMO10091" primaryShipGroupSeqId="00001" lastUpdatedStamp="2008-06-10 12:59:26.852" lastUpdatedTxStamp="2008-06-10 12:59:26.8" createdStamp="2008-06-10 12:59:26.852" createdTxStamp="2008-06-10 12:59:26.8"/>
<Shipment shipmentId="9998" shipmentTypeId="SALES_SHIPMENT" statusId="SHIPMENT_INPUT" primaryOrderId="DEMO10091" primaryShipGroupSeqId="00001" estimatedShipCost="12.45" originFacilityId="WebStoreWarehouse" originContactMechId="9200" originTelecomNumberId="9201" destinationContactMechId="9015" destinationTelecomNumberId="9025" partyIdTo="DemoCustomer"/>
</entity-engine-xml>