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

Add ability to move a received piece back to "Expected"

    XMLWordPrintable

    Details

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

      Description

      Overview:
      We need to support the ability to roll back or undo receiving a piece. See UIREC-21 for additional details.

      I think we should be able to reuse the POST /orders/receive endpoint for this purpose; the difference would be that piece and item status would be "Expected" and "On Order" respectively. We might not need/want all the detail either, e.g. barcode, caption, comment, etc. It would probably suffice to have just the piece/item ids and status.

      Requirements:

      • the receivingStatus of the specified pieces is changed to "Expected" and receivedDate set to null/removed
      • the status of associated items is changed back to "On Order" (Dennis to verify) DB: Yes this is correct
      • the POST /orders/receive endpoint is used.
      • any changes to the POST /orders/receive endpoint should be backwards compatible if possible

      Acceptance Criteria:

      • The requirements above are met
      • test case(s) have been added to the unit tests (as always, 80%+ code coverage on new code)
      • test case(s) have been added to the API tests
      • the description in the RAML for this endpoint is updated to include a note describing this new behavior

        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