Author: jleroux
Date: Fri Mar 23 20:51:31 2012
New Revision: 1304590
URL:
http://svn.apache.org/viewvc?rev=1304590&view=revLog:
Ha forgot to save before committing, just better formatting around one operator and else block surrounded with curly bracket (could have been one line but in this case it's better read and safe like that)
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/CategoryDetail.groovy
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/CategoryDetail.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/CategoryDetail.groovy?rev=1304590&r1=1304589&r2=1304590&view=diff==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/CategoryDetail.groovy (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/CategoryDetail.groovy Fri Mar 23 20:51:31 2012
@@ -76,12 +76,13 @@ if(productStore) {
if (isMarketingPackage) {
resultOutput = dispatcher.runSync("getMktgPackagesAvailable", [productId : productCategoryMember.productId]);
availableInventory = resultOutput.availableToPromiseTotal;
- if(availableInventory>0)
+ if(availableInventory > 0) {
productsInStock.add(productCategoryMember);
+ }
} else {
facilities = delegator.findList("ProductFacility", EntityCondition.makeCondition([productId : productCategoryMember.productId]), null, null, null, false);
availableInventory = 0.0;
- if(facilities) {
+ if (facilities) {
facilities.each { facility ->
lastInventoryCount = facility.lastInventoryCount;
if (lastInventoryCount != null) {