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

Create Order - Check for duplicate delivery timestamp

    Details

    • Sprint:
      CFAMX 2018R4 Sprint 3, CFAMX 2018R4 Sprint 4, CFAMX 2018R4 Sprint 5, CFAMX 2018R4 Hardening
    • SOW (Time Tracking) Project:
      44792

      Description

      As a Store Manager I want to be prevented from placing an order for the same delivery time as an order that is already placed

      Notes
      This enhancement is to prevent users from submitting orders that have the same delivery date/timestamp and/or cover until date/timestamp for the same supplier. If one of the two (delivery date or cover until date) is the same as a previous order, prevent the user from creating the order and alert them to choose a different date/timestamp. This logic should only look at orders that have not been cancelled, so that if an order is cancelled we'd be able to submit another order with the same delivery/cover until dates/timestamps in it's place.
      Mockup:

      Verbiage: You have an existing order for the same distributor with the same (delivery date/time or cover until date/time). Please update the dates and/or times.

      Acceptance Criteria

      1. Confirm that there is a new configuration setting:
        • Mobile > Ordering > Create Order - Duplicate Order Tolerance Check
        • text: The value entered, in hours, is used when checking for orders with duplicate delivery and cover until date/time stamps
        • The configuration setting will be an integer value with 1 hour increments
        • The configuration setting will default to zero preserving the current behavior
        • If the configuration setting is set to zero, a duplicate time should be allowed
      2. Duplicate Order check
        • the duplicate order check should not check against Canceled orders, orders of all other statuses should be checked
        • Selected Delivery date/time = Delivery date/time of order +/- configuration setting value, for same vendor
        • Selected Cover Until date/time = Cover Until date/time of order +/- configuration setting value, for same vendor
      3. Confirm when an order is placed for the same Delivery date/time as an existing order, for the same vendor, and the configuration setting is set, that the duplicate order message is displayed AND the confirm button is disabled
      4. Confirm when an order is placed for the same delivery date/time as an existing order, for the same vendor, and the configuration setting is NOT set, that the duplicate order message is NOT displayed AND the confirm button is enabled
      5. Confirm when an order is placed for the same Cover Until date/time as an existing order, for the same vendor, and the configuration setting is set, that the duplicate order message is displayed AND the confirm button is disabled
      6. Confirm when an order is placed for the same Cover Until date/time as an existing order, for the same vendor, and the configuration setting is NOT set, that the duplicate order message is NOT displayed AND the confirm button is enabled
      7. Confirm that if neither the Delivery date/time nor the Cover Until date/time are equal to (+/- the configuration hours) of another order for the same vendor, the duplicate order message is NOT displayed and the confirm button is enabled

        Attachments

        1. Config.png
          Config.png
          84 kB
        2. image-2018-07-12-20-32-34-114.png
          image-2018-07-12-20-32-34-114.png
          28 kB
        3. image-2018-07-12-20-34-53-486.png
          image-2018-07-12-20-34-53-486.png
          29 kB
        4. image-2018-09-13-12-44-33-317.png
          image-2018-09-13-12-44-33-317.png
          52 kB
        5. NoWarning.png
          NoWarning.png
          25 kB
        6. OpenOrder.png
          OpenOrder.png
          35 kB

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                will.englefield Will Englefield (Inactive)
                Reporter:
                will.englefield Will Englefield (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 43h Original Estimate - 43h
                  43h
                  Remaining:
                  Time Spent - 58h 37m Remaining Estimate - 5h
                  5h
                  Logged:
                  Time Spent - 58h 37m Remaining Estimate - 5h
                  58h 37m

                    PagerDuty

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