[ 
https://issues.apache.org/jira/browse/OFBIZ-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462097
 ] 

Anil K Patel commented on OFBIZ-583:
------------------------------------

If you paste this following code at line # 253 in CheckOutEvents.java. I know 
this will fix the CreditCard problem.


        if (paymentMethods == null) {
            String paymentMethodId = (String) 
request.getAttribute("paymentMethodId");
            if (paymentMethodId != null) {
                String[] paymentMethodsTemp = {paymentMethodId};
                paymentMethods = paymentMethodsTemp;
            }            
        }


> Offline payment selection now prevents completion of sales order
> ----------------------------------------------------------------
>
>                 Key: OFBIZ-583
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-583
>             Project: Apache OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: order
>            Reporter: Iain Fogg
>            Priority: Critical
>
> I upgraded to the latest SVN on the weekend and now I find that when I raise 
> a Sales Order in the Order Manager, and select OFFLINE as the payment option, 
> the sale cannot proceed because it complains about no payment method being 
> selected.
> CheckOutEvent.java has undergone some significant changes regarding checkout 
> processing, and I suspect the following snippet:
>         methodType = request.getParameter("paymentMethodType");
>         if ("offline".equals(methodType)) {
>             Debug.log("Changing mode from->to: " + mode + "->payment", 
> module);
>             mode = "payment";
>         }
> If I've selected offline payment, shouldn't the mode be set to "addparty", 
> not "payment"?
> Not sure who contributed the most recent changes, but would appreciate a 
> speedy resolution to this one as I can't do sales orders without it!!!
> Cheers, Iain

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to