svn commit: r775277 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java

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

svn commit: r775277 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java

mor-2
Author: mor
Date: Fri May 15 18:25:25 2009
New Revision: 775277

URL: http://svn.apache.org/viewvc?rev=775277&view=rev
Log:
Fixed typo in the comment, hsould -> should

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java?rev=775277&r1=775276&r2=775277&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java Fri May 15 18:25:25 2009
@@ -1011,7 +1011,7 @@
                  * Then group these refund amounts and orderPaymentPreferences by paymentMethodTypeId.  That is,
                  * the intent is to get the refundable amounts per orderPaymentPreference, grouped by payment method type.
                  */
-                Map prefSplitMap = new HashMap() ;
+                Map prefSplitMap = new HashMap();
                 Iterator oppit = orderPayPrefs.iterator();
                 while (oppit.hasNext()) {
                     GenericValue orderPayPref = (GenericValue) oppit.next();
@@ -1019,11 +1019,11 @@
                     String orderPayPrefKey = orderPayPref.getString("paymentMethodId") != null ? orderPayPref.getString("paymentMethodId") : orderPayPref.getString("paymentMethodTypeId");
 
                     // See how much we can refund to the payment method
-                    BigDecimal orderPayPrefReceivedTotal = ZERO ;
+                    BigDecimal orderPayPrefReceivedTotal = ZERO;
                     if (receivedPaymentTotalsByPaymentMethod.containsKey(orderPayPrefKey)) {
                         orderPayPrefReceivedTotal = orderPayPrefReceivedTotal.add((BigDecimal)receivedPaymentTotalsByPaymentMethod.get(orderPayPrefKey)).setScale(decimals, rounding);
                     }
-                    BigDecimal orderPayPrefRefundedTotal = ZERO ;
+                    BigDecimal orderPayPrefRefundedTotal = ZERO;
                     if (refundedTotalsByPaymentMethod.containsKey(orderPayPrefKey)) {
                         orderPayPrefRefundedTotal = orderPayPrefRefundedTotal.add((BigDecimal)refundedTotalsByPaymentMethod.get(orderPayPrefKey)).setScale(decimals, rounding);
                     }
@@ -1132,7 +1132,7 @@
                                         continue;
                                     }
                                     paymentId = (String) serviceResult.get("paymentId");
-                                    returnItemStatusId = "RETURN_MAN_REFUND";    // however, in this case we hsould flag it as a manual refund
+                                    returnItemStatusId = "RETURN_MAN_REFUND";    // however, in this case we should flag it as a manual refund
                                 } catch (GenericServiceException e) {
                                     return ServiceUtil.returnError(e.getMessage());
                                 }