You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2015/09/11 12:35:54 UTC

svn commit: r1702420 - /ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

Author: jleroux
Date: Fri Sep 11 10:35:53 2015
New Revision: 1702420

URL: http://svn.apache.org/r1702420
Log:
No functional changes, removes an useless assignation found by chance an fixes indentation

Modified:
    ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java

Modified: ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java?rev=1702420&r1=1702419&r2=1702420&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java (original)
+++ ofbiz/trunk/specialpurpose/pos/src/org/ofbiz/pos/PosTransaction.java Fri Sep 11 10:35:53 2015
@@ -599,9 +599,9 @@ public class PosTransaction implements S
             ShoppingCartItem item = cart.findCartItem(iCartIndex);
             List<GenericValue> adjustments = item.getAdjustments();
             for (GenericValue gvAdjustment : adjustments){
-                    item.removeAdjustment(gvAdjustment);
+                item.removeAdjustment(gvAdjustment);
             }
-               int idx = item.addAdjustment(adjustment);
+            item.addAdjustment(adjustment);
         } else {
             trace("add sale adjustment");
             if (cartDiscount > -1) {
@@ -1938,7 +1938,7 @@ public class PosTransaction implements S
                             trace("updatePassword");
                             String passwordAcceptEncryptedAndPlain = null;
                             try {
-                            	
+                                
                                 passwordAcceptEncryptedAndPlain = EntityUtilProperties.getPropertyValue("security.properties", "password.accept.encrypted.and.plain", delegator);
                                 UtilProperties.setPropertyValueInMemory("security.properties", "password.accept.encrypted.and.plain", "true");
                                 svcRes = dispatcher.runSync("updatePassword",