Uploaded image for project: 'CFA MX '
  1. CFA MX
  2. CFAMX-23922

User Added Sales Exclusions - Add Sales Exclusion Modal (Patchback Clone Linked)

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2023.R2 New Features Sprint 5
    • SCRUM Team:
      Brotherhood of Mutants
    • Story Points:
      3
    • Work Type Classification:
      Sustaining

      Description

      Story

      As a user, I would like to be able to add a new Sales Exclusion via the UI.

      Details

      Wireframe

      When the user clicks the Add Sales Exclusion button, the Add Sales Exclusion modal opens with 3 configurable attributes.

      • A text field labeled "Sales Exclusion Type ID"
      • A text field labeled "Sales Exclusion Name"
      • A search field where the user can search for stores to add to the sales exclusion.

      The stores search will borrow functionality from the store search that we created in "Administration > Data Export > Store".

      Existing Sales Exclusions validation

      When a user click the "Add Sales Exclusion" button, we have to validate the new sales exclusion against the existing sales exclusions in the table.

      AC

      1. When the user clicks the "Add Sales Exclusion" button, the Add Sales Exclusion modal opens.
      2. The modal includes 3 editable fields:
        1. Sales Exclusion Type ID
        2. Sales Exclusion Name
        3. Search for Stores
      3. The modal header is correct and the "X" works correctly to close the modal without saving the changes.
      4. The Modal footer includes a "Cancel" and "Add Sales Exclusion" button.
        1. The Cancel button works correctly to close the modal without saving the changes.
      5. All fields are required for the "Add Sales Exclusions" button to be active.
      6. The Store search works the same as it does in "Administration > Data Export > Store".
        1. Comma separated search
        2. Select All
        3. Select multiple stores from a list
      7. Once all fields are updated, the Add Sales Exclusions button is active.
      8. New Sales Exclusions default to Active

      Existing Sales Exclusions validation

      1. When the user clicks the "Add Sales Exclusion" button, if a sales exclusion exists with the exact same type ID, open the following modal:
        1. Header: "Sales Exclusion Already Exists"
        2. Body: "A Sales Exclusion already exists with this Type ID. Please update the Sales Exclusion Type ID or edit the existing Sales Exclusion."
        3. Footer: a "Ok" button that closes the modal.
      2. Once the user updates a field so that the Sales Exclusion Type ID is unique, the validation modal no longer opens and the Sales Exclusion saves.

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                jason.powell Jason Powell
                Reporter:
                jason.powell Jason Powell
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 25h Original Estimate - 25h
                  25h
                  Remaining:
                  Time Spent - 25h 2m Remaining Estimate - 14h
                  14h
                  Logged:
                  Time Spent - 25h 2m Remaining Estimate - 14h
                  25h 2m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.