Author: jonesde
Date: Sat Aug 25 18:03:26 2007
New Revision: 569750

URL: http://svn.apache.org/viewvc?rev=569750&view=rev
Log:
Added an update method for OrderShipment, used when splitting ShipmentItems

Modified:
    
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml
    ofbiz/trunk/applications/order/servicedef/services.xml

Modified: 
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml?rev=569750&r1=569749&r2=569750&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml 
(original)
+++ 
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml 
Sat Aug 25 18:03:26 2007
@@ -99,17 +99,28 @@
 
         <create-value value-name="newEntity"/>
     </simple-method>
+    <simple-method method-name="updateOrderShipment" short-description="Update 
OrderShipment">
+        <set value="Update OrderShipment" field="operationName"/>
+        <check-permission permission="ORDERMGR" action="_UPDATE">
+            <fail-property resource="OrderErrorUiLabels" 
property="OrderSecurityErrorToRunDeleteOrderShipment"/>
+        </check-permission>
+        <check-errors/>
+
+        <entity-one entity-name="OrderShipment" value-name="lookedUpValue"/>
+        <set-nonpk-fields map-name="parameters" value-name="lookedUpValue"/>
+        <store-value value-name="lookedUpValue"/>
+    </simple-method>
     <simple-method method-name="deleteOrderShipment" short-description="Delete 
OrderShipment">
         <set value="Delete OrderShipment" field="operationName"/>
         <check-permission permission="ORDERMGR" action="_DELETE">
             <fail-property resource="OrderErrorUiLabels" 
property="OrderSecurityErrorToRunDeleteOrderShipment"/>
         </check-permission>
         <check-errors/>
-
+        
         <entity-one entity-name="OrderShipment" value-name="lookedUpValue"/>
         <remove-value value-name="lookedUpValue"/>
     </simple-method>
-
+    
     <!-- order requirement methods -->
     <simple-method method-name="createOrderRequirementCommitment" 
short-description="Create OrderRequirementCommitment">
         <!-- The permission checking is commented out to make this service 
work also when triggered from ecommerce orders -->

Modified: ofbiz/trunk/applications/order/servicedef/services.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services.xml?rev=569750&r1=569749&r2=569750&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/services.xml Sat Aug 25 18:03:26 
2007
@@ -522,6 +522,12 @@
         <auto-attributes include="pk" mode="IN" optional="false"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
+    <service name="updateOrderShipment" default-entity-name="OrderShipment" 
engine="simple"
+        location="org/ofbiz/order/order/OrderServices.xml" 
invoke="updateOrderShipment" auth="true">
+        <description>Update OrderShipment</description>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+    </service>
     <service name="deleteOrderShipment" default-entity-name="OrderShipment" 
engine="simple"
             location="org/ofbiz/order/order/OrderServices.xml" 
invoke="deleteOrderShipment" auth="true">
         <description>Delete OrderShipment</description>


Reply via email to