Author: ashish
Date: Sat Sep 15 04:26:03 2012
New Revision: 1385008
URL: http://svn.apache.org/viewvc?rev=1385008&view=rev
Log:
Bug fix. When creating Sales Order priority of Order is set to Medium i.e 2 in
OrderHeader. But when reserving inventory of sales order priority is not set
in OrderItemShipGrpInvRes . This results placing Order to get last priority
even if its ship before date is of earliest date. So this fix will solve the
bug and Orders will get reservation priority as expected.
Thanks Divesh for the contribution.
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/product/store/ProductStoreServices.xml
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/product/store/ProductStoreServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/store/ProductStoreServices.xml?rev=1385008&r1=1385007&r2=1385008&view=diff
==============================================================================
---
ofbiz/trunk/applications/product/script/org/ofbiz/product/store/ProductStoreServices.xml
(original)
+++
ofbiz/trunk/applications/product/script/org/ofbiz/product/store/ProductStoreServices.xml
Sat Sep 15 04:26:03 2012
@@ -456,6 +456,8 @@ under the License.
<simple-method method-name="reserveStoreInventory"
short-description="Reserve Store Inventory">
<entity-one entity-name="Product" value-field="product"
use-cache="true"/>
<entity-one entity-name="ProductStore" value-field="productStore"
use-cache="true"/>
+ <entity-one entity-name="OrderHeader" value-field="orderHeader"
use-cache="true"/>
+ <set field="parameters.priority" from-field="orderHeader.priority"/>
<if-empty field="productStore">
<add-error>
<fail-property resource="ProductUiLabels"
property="ProductProductStoreNotFound"/>