Add a validation rule by using pre-defined criteria
You can create a validation rule by using the pre-defined criteria for a policy that belongs to pricing domain.
About this task
Note: The fields marked with * are mandatory.
Procedure
- 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 CPN_GRACE_PERIOD validation, you must enter a pre-defined value in Maximum Grace Period(Days) for a Expired Coupon text box.
- Click Save.