Adding a validation rule using pre-defined criteria
You can create a new validation rule using the pre-defined criteria for a policy that belongs to returns domain.
About this task
Note: The fields marked with * are mandatory.
Procedure
-
Navigate to the Policy
Details screen. To navigate to the Policy Details screen,
perform the following steps:
- Log in to Sterling Business Center as a system administrator or a system setup administrator.
-
From the System Setup Home page, expand the Return
Order menu, and then click Return Policy.
The existing return policies if any, are displayed in the Return Policy screen.
-
In the Policy list panel,
click the Policy hyperlink from the policy list to
navigate to the corresponding Policy Details
screen.
The Policy Details screen is displayed.
- In the Policy Details screen, click Validation Rules tab.
- Click Add.
The New Validation Rule screen is displayed.
- Perform
the following steps to add the primary information:
- In the Validation Rule ID * text box, enter a unique identifier for the validation rule. The Validation Rule ID, which is used to identify the validation, must be unique for the organization.
- From the Document Type menu, select the document type of the validation rule.
- From the Message Code menu, select the message code for the validation rule.
- In the Message Description text box, enter a brief description of the message code that is selected. The maximum number of characters you can enter is 100 characters.
- Enter the Effective Start Date. Alternatively, click the Calendar icon to select a start date from the calendar. The date format that is displayed depends on your locale.
- Enter the Effective End Date. Alternatively, click the Calendar icon to select an end date from the calendar. The date format that is displayed depends on your locale.
- Perform the following steps
to add the criteria:
- From the Channel menu, select the sales channel for the validation rule.
- From the Lane Type menu, select the lane type for the validation rule.
- From the Store Type menu, select the store type for the validation rule.
- From the Region lookup widget, search for the region of the validation rule.
Note: For the validation to take place, ensure that the order created qualifies the criteria. - Enter the value for
the pre-defined criteria in the text box that is populated based on
the validation that is selected.
For example, If you are creating a validation rule for RETURN_UNIT_PRICE_LIMIT validation, you must enter a pre-defined value in Maximum Unit Price Of Item text box.
- Click Save.