svn commit: r702183 - in /ofbiz/trunk/applications/product: script/org/ofbiz/shipment/picklist/PicklistServices.xml servicedef/services_picklist.xml

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

svn commit: r702183 - in /ofbiz/trunk/applications/product: script/org/ofbiz/shipment/picklist/PicklistServices.xml servicedef/services_picklist.xml

eckardjf
Author: eckardjf
Date: Mon Oct  6 08:50:16 2008
New Revision: 702183

URL: http://svn.apache.org/viewvc?rev=702183&view=rev
Log:
When creating a new picklist item make the status optional, by default it will be set to Pending

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml
    ofbiz/trunk/applications/product/servicedef/services_picklist.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml?rev=702183&r1=702182&r2=702183&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml Mon Oct  6 08:50:16 2008
@@ -701,6 +701,10 @@
         <set-pk-fields map-name="parameters" value-name="newEntity"/>
         <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
 
+        <if-empty field="newEntity.itemStatusId">
+            <set value="PICKITEM_PENDING" field="newEntity.itemStatusId"/>
+        </if-empty>
+
         <create-value value-name="newEntity"/>
     </simple-method>
     <simple-method method-name="updatePicklistItem" short-description="Update PicklistItem">

Modified: ofbiz/trunk/applications/product/servicedef/services_picklist.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/services_picklist.xml?rev=702183&r1=702182&r2=702183&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/servicedef/services_picklist.xml (original)
+++ ofbiz/trunk/applications/product/servicedef/services_picklist.xml Mon Oct  6 08:50:16 2008
@@ -131,6 +131,7 @@
         <description>Create PicklistItem</description>
         <auto-attributes include="pk" mode="IN" optional="false"/>
         <auto-attributes include="nonpk" mode="IN" optional="false"/>
+        <override name="itemStatusId" optional="true"/>
     </service>
     <service name="updatePicklistItem" default-entity-name="PicklistItem" engine="simple"
             location="org/ofbiz/shipment/picklist/PicklistServices.xml" invoke="updatePicklistItem" auth="true">