svn commit: r1855102 - in /ofbiz/ofbiz-framework/trunk/applications/order: servicedef/services.xml src/main/java/org/apache/ofbiz/order/order/OrderServices.java

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

svn commit: r1855102 - in /ofbiz/ofbiz-framework/trunk/applications/order: servicedef/services.xml src/main/java/org/apache/ofbiz/order/order/OrderServices.java

rishi
Author: rishi
Date: Sat Mar  9 11:19:52 2019
New Revision: 1855102

URL: http://svn.apache.org/viewvc?rev=1855102&view=rev
Log:
Improved: Store Order Service Imrovements. Added support in the store order service to store few more order header level fields conditionally. Fields covered priority and isRushOrder.
OFBIZ-10885
Thanks to Harsh Vijaywargiya for your contribution

Modified:
    ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services.xml
    ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/order/OrderServices.java

Modified: ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services.xml?rev=1855102&r1=1855101&r2=1855102&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/order/servicedef/services.xml Sat Mar  9 11:19:52 2019
@@ -143,6 +143,8 @@ under the License.
         <attribute name="supplierPartyId" type="String" mode="IN" optional="true"/>
         <attribute name="orderId" type="String" mode="INOUT" optional="true"/>
         <attribute name="originOrderId" type="String" mode="IN" optional="true"/>
+        <attribute name="isRushOrder" type="String" mode="IN" optional="true"/>
+        <attribute name="priority" type="String" mode="IN" optional="true"/>
         <attribute name="statusId" type="String" mode="OUT" optional="false"/>
     </service>
 

Modified: ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/order/OrderServices.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/order/OrderServices.java?rev=1855102&r1=1855101&r2=1855102&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/order/OrderServices.java (original)
+++ ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/order/OrderServices.java Sat Mar  9 11:19:52 2019
@@ -547,6 +547,14 @@ public class OrderServices {
         if (userLogin != null && userLogin.get("userLoginId") != null) {
             orderHeader.set("createdBy", userLogin.getString("userLoginId"));
         }
+        
+        if (context.get("isRushOrder") != null) {
+            orderHeader.set("isRushOrder", context.get("isRushOrder"));
+        }
+        
+        if (context.get("priority") != null) {
+            orderHeader.set("priority", context.get("priority"));
+        }
 
         String invoicePerShipment = EntityUtilProperties.getPropertyValue("accounting","create.invoice.per.shipment", delegator);
         if (UtilValidate.isNotEmpty(invoicePerShipment)) {