Assign supplying depot to requisitions for "Convert to Order"

Description

As a warehouse clerk, I want to assign a supplying depot to an approved requisition (final state before 'released') so that an order entity can be generated based on the order number template and order file template.

Acceptance Criteria
Verify that:

  • Provide API endpoint(s) to retrieve all valid supplying depots for a given approved requisition

    • valid supplying depots - look into the logic in v2 to determine which supplying depots should be considered valid (I think some combination of supply line/supervisory node/program) Please update the acceptance criteria once it is identified

  • can select the supplying depot (depots are previously defined and sit in reference data) and assign it to a specific approved requisition (UI)

  • once supply depot is assigned to the requisition, the user can 'convert to order' (process of converting an order is addressed in another story ) (may be mainly in the UI)

    • convert to order process should retrieve the supply depot selected

  • receive an error message if they attempt to convert an order without selecting a supply depot

  • can select and assign supplying depots to multiple requisitions at once (then all will be converted)

  • the system pre-populates the supply depot when there is only one depot associated with the requisition in the system (not sure if this is just within the UI or if this can be implemented in the API calls)

  • appropriate user permissions are enforced

Moved from :

  • available supplying depots are available for selection

  • if only one supply depot is configured, it should be the defaulted selection

Status

Assignee

Paweł Gesek

Reporter

Mary Jo Kochendorfer

Labels

Time tracking

0m

Epic Link

Components

Sprint

None

Fix versions

Affects versions

Priority

Major
Configure