The system should enforce at least one facility group or channel selection when creating a new inventory rule. When a user attempts to save the rule with no selections, a validation message should be displayed, preventing them from saving an empty rule.
Steps to reproduce the issue
Navigate to Threshold/Safety Stock/Shipping/Store Pickup section of ATP App after successful login.
Click "Create New Rule" button to initiate rule creation.
Add Facility Group(s): Select one or more facility groups from the available options.
Add Channel(s): Select one or more channels from the available options.
Complete any other required fields.
Attempt to Save the Rule. Click the "Save" button.
In the card list, open the selected facilities/channels modal.
Select clear all option and then save the changes to observe the issue.
Environment details
App version: Threshold-2.0-85939b3
App environment: DEV
Expected behavior
The system should enforce at least one facility group or channel selection when creating a new inventory rule. When a user attempts to save the rule with no selections, a validation message should be displayed, preventing them from saving an empty rule.
Steps to reproduce the issue
Navigate to Threshold/Safety Stock/Shipping/Store Pickup section of ATP App after successful login. Click "Create New Rule" button to initiate rule creation. Add Facility Group(s): Select one or more facility groups from the available options. Add Channel(s): Select one or more channels from the available options. Complete any other required fields. Attempt to Save the Rule. Click the "Save" button. In the card list, open the selected facilities/channels modal. Select clear all option and then save the changes to observe the issue.
Environment details
App version: Threshold-2.0-85939b3 App environment: DEV
Additional information
https://jam.dev/c/8359fac3-ae7e-4fe5-9443-8af30e988ef9