svn commit: r1027960 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalServices.java

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

svn commit: r1027960 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalServices.java

ashish-18
Author: ashish
Date: Wed Oct 27 13:44:54 2010
New Revision: 1027960

URL: http://svn.apache.org/viewvc?rev=1027960&view=rev
Log:
Bug fix.
Applied patch from jira issue OFBIZ-4004 - Incorrect State/Province for Billing Addresses in paypal orders.

There are some State/Province which have the same geoCode
for example (geoId = IN-UT, geoCode = UT) and (geoId = UT, geoCode = UT)
For such states when paypal checkout is done, the billing address is stored incorrectly in the DB.
When checking out with billing address as (UT, USA), what gets stored instead is (IN-UT, USA).


Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalServices.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalServices.java?rev=1027960&r1=1027959&r2=1027960&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalServices.java Wed Oct 27 13:44:54 2010
@@ -1020,6 +1020,7 @@ public class PayPalServices {
             conditionList.add(EntityCondition.makeCondition("geoTypeId", geoTypeId));
             lookupField = "geoCode";
         }
+        conditionList.add(EntityCondition.makeCondition("geoIdFrom", countryGeoId));
         conditionList.add(EntityCondition.makeCondition(lookupField, payPalShipToState));
         EntityCondition cond = EntityCondition.makeCondition(conditionList);
         GenericValue geoAssocAndGeoTo = null;