No functional change. Only formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940858 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user