From 2527bf0faa3e0779fa5ce90635dd5ff6152a6d64 Mon Sep 17 00:00:00 2001 From: Vikas Mayur Date: Tue, 4 May 2010 13:56:19 +0000 Subject: [PATCH] No functional change. Only formatting changes. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940858 13f79535-47bb-0310-9956-ffa450edef68 --- .../order/order/OrderReturnServices.java | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java b/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java index 0dba1b4151..617c195b01 100644 --- a/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java +++ b/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java @@ -493,19 +493,18 @@ public class OrderReturnServices { // items not issued/shipped are considered as returnable only if they are // not physical items if ("SALES_ORDER".equals(orderHeader.getString("orderTypeId"))) { - BigDecimal quantityIssued = orderItemQuantityIssued.getBigDecimal("quantityIssued"); - if (UtilValidate.isEmpty(quantityIssued) || quantityIssued.compareTo(BigDecimal.ZERO) == 0) { - try { - GenericValue itemProduct = item.getRelatedOne("Product"); - if (ProductWorker.isPhysical(itemProduct)) { - continue; + BigDecimal quantityIssued = orderItemQuantityIssued.getBigDecimal("quantityIssued"); + if (UtilValidate.isEmpty(quantityIssued) || quantityIssued.compareTo(BigDecimal.ZERO) == 0) { + try { + GenericValue itemProduct = item.getRelatedOne("Product"); + if (ProductWorker.isPhysical(itemProduct)) { + continue; + } + } catch (GenericEntityException e) { + Debug.logError(e, "Problems looking up returnable product type information", module); + return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderErrorUnableToGetTheItemReturnableProduct", locale)); } - } catch (GenericEntityException e) { - Debug.logError(e, "Problems looking up returnable product type information", module); - return ServiceUtil.returnError(UtilProperties.getMessage(resource_error,"OrderErrorUnableToGetTheItemReturnableProduct", locale)); } - - } } Map serviceResult = null; try {