on 04-14-2021 7:40 AM
I have a problem with cancelling return request from backoffice (Customer support/Warehouse perspective). When I cancel a return request it asks me about Cancellation Reason and Optional Comment. After I enter both and apply I got another popup and apply that and now I have a cancelled return request. But THERE IS NO SIGN OF THE CANCELATION REASON AND COMMENT. Wherever I check I don't see any of those infos. I check the code and nothing. check backoffice and nothing.
Is this one of the bugs hybris has and nobody cares about it?
I want to use that info to set it in the cancellation email to the customer.
Unfortunately, in ReturnCancellationController's confirmCancelReturn() method it only validates that the reason is selected and calls getReturnCallbackService().onReturnCancelResponse(returnActionResponse) which sets the ReturnRequest status' as CANCELLING. And also it calls getReturnActionAdapter().requestReturnCancellation(returnRequest). In DefaultReturnActionAdapter, this method only logs the following.
LOG.info("Return cancellation requested. Default implementation is empty, please provide your own implementation");
In OmsReturnActionAdapter, which can be found in yordermanagement extension, return-process is also triggered to continue and complete the cancellation. Also as you can see there is no cancellation reason or comment field on ReturnRequestModel. So as I understand people in hybris wanted to have this feature (cancelling Return Request with additional comment and reason) but forgot to connect the fields to ReturnRequest. It's still the same in 1905 version, but I'm guessing it's still the same in newer versions also. So you have to customize this controller and take actions according to selected reason and comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.