svn commit: r795050 - /ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml

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

svn commit: r795050 - /ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml

ashish-18
Author: ashish
Date: Fri Jul 17 11:34:06 2009
New Revision: 795050

URL: http://svn.apache.org/viewvc?rev=795050&view=rev
Log:
Applied patch from jira issue - OFBIZ-2736 - facilityId not processed correctly in case of quickShipPurchaseOrder.
Thanks Mridul for your contribution.

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml?rev=795050&r1=795049&r2=795050&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml Fri Jul 17 11:34:06 2009
@@ -543,7 +543,7 @@
         </if-empty>
 
         <!-- set the destination facility if it is a purchase order -->
-        <if-empty field="shipment.originFacilityId">
+        <if-empty field="shipment.destinationFacilityId">
             <if-compare field="shipment.shipmentTypeId" operator="equals" value="PURCHASE_SHIPMENT">
                 <set from-field="shipment.destinationContactMechId" field="facilityLookup.contactMechId"/>
                 <find-by-and entity-name="FacilityContactMech" map="facilityLookup" list="facilities"/>
@@ -1409,6 +1409,7 @@
 
     <simple-method method-name="quickShipPurchaseOrder" short-description="Quick ships an entire purchase order to a facility">
         <entity-one entity-name="OrderHeader" value-field="orderHeader"/>
+        <entity-one entity-name="Facility" value-field="facility"/>
         <call-simple-method method-name="getOrderItemShipGroupLists"/>
         <call-simple-method method-name="createShipmentForFacilityAndShipGroup"/>
         <log level="info" message="Finished quickShipPurchaseOrder for orderId ${parameters.orderId} and destination facilityId ${parameters.facilityId}"/>
@@ -1496,7 +1497,7 @@
                     <set value="SHIPMENT_INPUT" field="shipmentContext.statusId"/>
                   </then>
                   <else>
-                    <set from-field="facilityId" field="shipmentContext.destinationFacilityId"/>
+                    <set from-field="facility.facilityId" field="shipmentContext.destinationFacilityId"/>
                     <set value="PURCH_SHIP_CREATED" field="shipmentContext.statusId"/>
                   </else>
                 </if>