diff --git a/applications/product/config/ProductUiLabels.properties b/applications/product/config/ProductUiLabels.properties index d2f0a46778..8f6fa80e77 100644 --- a/applications/product/config/ProductUiLabels.properties +++ b/applications/product/config/ProductUiLabels.properties @@ -1130,6 +1130,7 @@ ProductReserveInventory=Reservenventory ProductReserved=Reserved ProductResetDate=Reset Date ProductResultOfImageUpload=Result of image Upload +ProductReturnCompletelyReceived=This return is completely received ProductReturnNumber=Return Number ProductReturnToEditProduct=Return to Edit Product ProductReturnToEditProductFeatures=Return to Edit Product Features diff --git a/applications/product/webapp/facility/WEB-INF/actions/returns/receiveReturn.bsh b/applications/product/webapp/facility/WEB-INF/actions/returns/receiveReturn.bsh index 0cd9d97f51..8c6b47ae02 100644 --- a/applications/product/webapp/facility/WEB-INF/actions/returns/receiveReturn.bsh +++ b/applications/product/webapp/facility/WEB-INF/actions/returns/receiveReturn.bsh @@ -37,14 +37,14 @@ if (returnId != null) { if (returnHeader != null) { if (returnHeader.getString("statusId").equals("RETURN_ACCEPTED")) { returnItems = returnHeader.getRelated("ReturnItem"); - } else if (!returnHeader.getString("statusId").equals("RETURN_REQUESTED")) { - uiLabelMap = UtilProperties.getResourceBundleMap("ProductErrorUiLabels", locale); - ProductReturnNotYetAcceptedOrAlreadyReceived = uiLabelMap.get("ProductReturnNotYetAcceptedOrAlreadyReceived"); - request.setAttribute("_ERROR_MESSAGE_", ProductReturnNotYetAcceptedOrAlreadyReceived + " (#" + returnId.toString() + ")" ); - } else { + } else if (returnHeader.getString("statusId").equals("RETURN_REQUESTED")) { uiLabelMap = UtilProperties.getResourceBundleMap("ProductErrorUiLabels", locale); ProductReturnRequestedOK = uiLabelMap.get("ProductReturnRequestedOK"); request.setAttribute("_EVENT_MESSAGE_", ProductReturnRequestedOK + " (#" + returnId.toString() + ")" ); + } else if (!returnHeader.getString("statusId").equals("RETURN_RECEIVED")) { + uiLabelMap = UtilProperties.getResourceBundleMap("ProductErrorUiLabels", locale); + ProductReturnNotYetAcceptedOrAlreadyReceived = uiLabelMap.get("ProductReturnNotYetAcceptedOrAlreadyReceived"); + request.setAttribute("_ERROR_MESSAGE_", ProductReturnNotYetAcceptedOrAlreadyReceived + " (#" + returnId.toString() + ")" ); } } } diff --git a/applications/product/webapp/facility/returns/receiveReturn.ftl b/applications/product/webapp/facility/returns/receiveReturn.ftl index 94ed057d46..8f7c43e8bf 100644 --- a/applications/product/webapp/facility/returns/receiveReturn.ftl +++ b/applications/product/webapp/facility/returns/receiveReturn.ftl @@ -24,9 +24,12 @@ under the License. <#-- Receiving Results --> <#if receivedItems?has_content> +

${uiLabelMap.ProductReceiptForReturn} #${returnHeader.returnId}

+ <#if "RETURN_RECEIVED" == returnHeader.getString("statusId")> +

${uiLabelMap.ProductReturnCompletelyReceived}

+ +
- -
${uiLabelMap.ProductReceiptForReturn} #${returnHeader.returnId}

${uiLabelMap.ProductReceipt}
${uiLabelMap.CommonDate}