You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2006/12/06 22:12:51 UTC

svn commit: r483229 - /incubator/ofbiz/trunk/specialpurpose/hhfacility/webapp/hhfacility/WEB-INF/actions/productstocktake.bsh

Author: jacopoc
Date: Wed Dec  6 13:12:50 2006
New Revision: 483229

URL: http://svn.apache.org/viewvc?view=rev&rev=483229
Log:
Formatting fixes

Modified:
    incubator/ofbiz/trunk/specialpurpose/hhfacility/webapp/hhfacility/WEB-INF/actions/productstocktake.bsh

Modified: incubator/ofbiz/trunk/specialpurpose/hhfacility/webapp/hhfacility/WEB-INF/actions/productstocktake.bsh
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/specialpurpose/hhfacility/webapp/hhfacility/WEB-INF/actions/productstocktake.bsh?view=diff&rev=483229&r1=483228&r2=483229
==============================================================================
--- incubator/ofbiz/trunk/specialpurpose/hhfacility/webapp/hhfacility/WEB-INF/actions/productstocktake.bsh (original)
+++ incubator/ofbiz/trunk/specialpurpose/hhfacility/webapp/hhfacility/WEB-INF/actions/productstocktake.bsh Wed Dec  6 13:12:50 2006
@@ -23,11 +23,11 @@
 delegator = request.getAttribute("delegator");
 
 productId = request.getParameter("productId");
-if ( productId == null ) {
+if (productId == null) {
     productId = session.getAttribute("productId");
 }
 
-if ( productId != null ) {
+if (productId != null) {
     product = delegator.findByPrimaryKeyCache("Product", UtilMisc.toMap("productId", productId));
     context.put("product", product);
 
@@ -48,7 +48,7 @@
 
     while (productFacilityLocListIter.hasNext()) {
         facilityLoc = productFacilityLocListIter.next();
-        if ( UtilValidate.isEmpty(facStr) ) {
+        if (UtilValidate.isEmpty(facStr)) {
             facStr = facilityLoc.get("locationSeqId");
         } else {
             facStr = facStr + ", " + facilityLoc.get("locationSeqId");
@@ -69,13 +69,14 @@
     while (invItemListIter.hasNext()) {
         invItem = invItemListIter.next();
         int qoh = ((Double)invItem.get("quantityOnHandTotal")).intValue();
-        if ( qoh < 0 )
-        	negativeQOH = true;
+        if (qoh < 0) {
+            negativeQOH = true;
+        }
         locationFound = (String)invItem.get("locationSeqId");
         if ( locationFound == null ) {
             locationFound = "nullField";
         }
-        if ( locations.get(locationFound) == null ) {
+        if (locations.get(locationFound) == null) {
             locations.put(locationFound, locationFound);
         }
     }
@@ -90,7 +91,7 @@
         quantitySummary = new HashMap();
         quantitySummary.put("productId", productId);
         quantitySummary.put("facilityId", facilityId);
-        if ( "nullField".equals( location ) == true ) {
+        if ("nullField".equals( location ) == true) {
             quantitySummary.put("locationSeqId", "");
         } else {
             quantitySummary.put("locationSeqId", location);
@@ -102,10 +103,6 @@
 
     context.put("productQtyByLocations", productFacilityLocations);
     if ( negativeQOH == true ) {
-	    context.put("negativeQOH", "true");
-	}
-
-
+        context.put("negativeQOH", "true");
+    }
 }
-
-