User Story: As a customer service representative,
I want to enforce restrictions on return orders based on the ship date recorded in the ERP system,
So that customers are unable to submit return requests for orders shipped more than x number of days.
Acceptance Criteria:
1. Return Window Restriction: The system should prevent customers from submitting return requests for orders shipped more than a fixed number of days, based on the ship date in the ERP.
2. Error Message: If a customer attempts to submit a return outside the window, the system should display a clear error message, such as: "Return period has expired. Orders can only be returned within X number of days of the ship date."
3. Configurable Setting: The restriction period should be configurable, allowing for adjustments by customer service based on business needs.
4. Ship Date Validation: The system should automatically pull the ship date from the ERP and validate it before accepting any return request.
5. Audit Trail: All return requests that are rejected due to this restriction should be logged in the system for future reference and reporting.