The sale order has a Finish status, shipment status is Product delivered and the return request must be placed within X days after the delivery date
For the orders that do not have a shipment, it is possible to create a return order for an order with Finish status
In client portal, show Return Request button when:
If the order has a shipment number, the customer can create a return order when the status of the shipment is product delivered and within X days of delivery
If there is no shipment, customers can create returns for orders in the Finish tab.