svn commit: r1304567 - in /ofbiz/trunk/specialpurpose/ecommerce: webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy widget/OrderScreens.xml

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

svn commit: r1304567 - in /ofbiz/trunk/specialpurpose/ecommerce: webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy widget/OrderScreens.xml

jleroux@apache.org
Author: jleroux
Date: Fri Mar 23 19:34:31 2012
New Revision: 1304567

URL: http://svn.apache.org/viewvc?rev=1304567&view=rev
Log:
A patch from Kiran Gawde  "OnePageCheckout doesn't create purchase order for dropShip product" https://issues.apache.org/jira/browse/OFBIZ-4458

Select a item from drop ship supplier.
Perform one page checkout.

Issue: Purchase order for drop ship supplier is not created

Added:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy   (with props)
Modified:
    ofbiz/trunk/specialpurpose/ecommerce/widget/OrderScreens.xml

Added: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy?rev=1304567&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy (added)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy Fri Mar 23 19:34:31 2012
@@ -0,0 +1,8 @@
+import org.ofbiz.order.shoppingcart.shipping.*;
+
+shoppingCart = session.getAttribute("shoppingCart");
+
+// Reassign items requiring drop-shipping to new or existing drop-ship groups
+if (shoppingCart) {
+ shoppingCart.createDropShipGroups(dispatcher);
+}

Propchange: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: ofbiz/trunk/specialpurpose/ecommerce/widget/OrderScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/widget/OrderScreens.xml?rev=1304567&r1=1304566&r2=1304567&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/widget/OrderScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/widget/OrderScreens.xml Fri Mar 23 19:34:31 2012
@@ -616,7 +616,7 @@ under the License.
                 <script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditShippingAddress.groovy"/>
                 <script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditBillingAddress.groovy"/>
                 <script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditEmailAndTelecomNumber.groovy"/>
-
+                <script location="component://ecommerce/webapp/ecommerce/WEB-INF/actions/customer/OnePageCheckoutOptions.groovy"/>
             </actions>
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">