Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-290

Enforce new setting: approval required to open orders

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 70, ACQ Sprint 71
    • Story Points:
      2
    • Development Team:
      Thunderjet

      Description

      Overview

      UIOR-234 added a new setting (persisted in mod-configuration) that specified whether or not approval is required when opening an order. While this is going to be enforced in the UI, it also needs to be enforced in the API.

      Also we need to set approvalDate and approvedBy fields either when the order is approved or opened (see below for details.)

      Approach

      When opening an order, check this setting and whether or not the order is approved. If needed return an appropriate error message/code.

      if the setting is false and the order is opened, we need to set the approval date to the current date and approvedBy is set to the user's UUID

      Upon order approval, approvalDate needs to be set to the current date and approvedBy is set to the user's UUID.

      Acceptance Criteria

      • The approved validation described above is implemented
      • Unit tests are updated
      • API tests are updated

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                cmcnally Craig McNally
                Reporter:
                cmcnally Craig McNally
                Tester Assignee:
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases