svn commit: r796247 - /ofbiz/branches/release09.04/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r796247 - /ofbiz/branches/release09.04/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml

ashish-18
Author: ashish
Date: Tue Jul 21 10:44:22 2009
New Revision: 796247

URL: http://svn.apache.org/viewvc?rev=796247&view=rev
Log:
Applied fix from trunk revision: 796245.
Applied patch from jira issue - OFBIZ-2743 (GenericEntityException in createItemIssuanceRole when receiving PO in multiple attempts)
Thanks Mridul for the contribution.

Modified:
    ofbiz/branches/release09.04/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml

Modified: ofbiz/branches/release09.04/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml?rev=796247&r1=796246&r2=796247&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml (original)
+++ ofbiz/branches/release09.04/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml Tue Jul 21 10:44:22 2009
@@ -360,10 +360,17 @@
         </if-empty>
 
         <!-- Add ItemIssuanceRole for party that issues this... -->
-        <set from-field="itemIssuanceId" field="itemIssuanceRoleCreate.itemIssuanceId"/>
-        <set from-field="userLogin.partyId" field="itemIssuanceRoleCreate.partyId"/>
-        <set value="PACKER" field="itemIssuanceRoleCreate.roleTypeId"/>
-        <call-service service-name="createItemIssuanceRole" in-map-name="itemIssuanceRoleCreate"/>
+        <entity-one value-field="itemIssuanceRole" entity-name="ItemIssuanceRole">
+            <field-map field-name="itemIssuanceId" from-field="itemIssuanceId"/>
+            <field-map field-name="partyId" from-field="userLogin.partyId"/>
+            <field-map field-name="roleTypeId" value="PACKER"/>
+        </entity-one>
+        <if-empty field="itemIssuanceRole">
+            <set from-field="itemIssuanceId" field="itemIssuanceRoleCreate.itemIssuanceId"/>
+            <set from-field="userLogin.partyId" field="itemIssuanceRoleCreate.partyId"/>
+            <set value="PACKER" field="itemIssuanceRoleCreate.roleTypeId"/>
+            <call-service service-name="createItemIssuanceRole" in-map-name="itemIssuanceRoleCreate"/>
+        </if-empty>
     </simple-method>
 
     <simple-method method-name="issueInventoryItemToFixedAssetMaint" short-description="Issue InventoryItem To FixedAssetMaint">