Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Test Case #:1314

Test Case Name:Order Service: split Ordering/Fulfillment from Requisition Service

System: OpenLMIS

Subsystem:blue

Test case designed by: Paulina Borowa

Design Date:28.11.2016

Short description

Currently the basics of Ordering/Fulfillment are in the Requisition Service. This ticket is to break this out so that at the end, Ordering/Fulfillment is its own independent service of which the Requisition service would place an Order with.

This needs acceptance criteria and does Block further development of Fulfillment tickets, so those should likely be linked here.

Requisition service should use the order service, not the other way around

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       



                                                                                                   

Step

Action

Expected system response

Comment

1

                                                                                                                                                                       

go to http://test.openlmis.org/fulfillment/docs/#/default

Check all endpoints with order


                                                  Image Added                                                                          

                                                 

2

get /orderFileTemplates

Image Added


3

post /orderFileTemplates

Body:

{

  "id": "35592135-d41a-4836-bc13-f9ecba39993a",

  "filePrefix": "Order123123",

  "headerInFile": true,

 

3

  

 

4

  

 

5

   

6

  

 

7

   

"orderFileColumns": []

}


Image Added


4

get /orderNumberConfigurations

Image Added


5

post /orderNumberConfigurations

Image Added


6

get /orders

Image Added


7

post /orders

body:

 {

    "id": "35e5059a-fd92-4078-a448-b00402b3fb5b",

    "externalId": "2112b9bb-c1e2-40b6-b381-28d739208662",

    "emergency": false,

    "facilityId": "44a29ccb-ed55-4c26-9eca-7e5759269b25",

    "processingPeriodId": "516ac930-0d28-49f5-a178-64764e22b236",

    "createdDate": [

      2016,

      4,

      30,

      16,

      45,

      22

    ],

    "createdById": "a337ec45-31a0-4f2b-9b2e-a105c4b669bb",

    "programId": "dce17f2e-af3e-40ad-8e00-3496adef44c3",

    "requestingFacilityId": "44a29ccb-ed55-4c26-9eca-7e5759269b25",

    "receivingFacilityId": "44a29ccb-ed55-4c26-9eca-7e5759269b25",

    "supplyingFacilityId": "e6799d64-d10d-4011-b8c2-0e4d4a3f65ce",

    "orderCode": "ORDER-00000000-0000-0000-0000-000000000006R",

    "status": "RECEIVED",

    "quotedCost": 1000000,

    "orderLineItems": []

  }


Image Added


8

get /orders/search

Image Added
9

delete /orders/{id}

Image Added

"could not remove an order because it has order line items that have connection with proof of delivery line items."
10

get /orders/{id}

Image Added


11

put /orders/{id}

Body:

{

    "id": "35e5059a-fd92-4078-a448-b00402b3fb5b",

    "externalId": "f152b9bb-c1e2-40b6-b381-28d739208662",

    "emergency": false,

    "facilityId": "44a29ccb-ed55-4c26-9eca-7e5759269b25",

    "processingPeriodId": "516ac930-0d28-49f5-a178-64764e22b236",

    "createdDate": [

      2016,

      4,

      30,

      16,

      45,

      22

    ],

    "createdById": "a337ec45-31a0-4f2b-9b2e-a105c4b669bb",

    "programId": "dce17f2e-af3e-40ad-8e00-3496adef44c3",

    "requestingFacilityId": "44a29ccb-ed55-4c26-9eca-7e5759269b25",

    "receivingFacilityId": "44a29ccb-ed55-4c26-9eca-7e5759269b25",

    "supplyingFacilityId": "e6799d64-d10d-4011-b8c2-0e4d4a3f65ce",

    "orderCode": "ORDER-00000000-0000-0000-0000-000000000006R",

    "status": "RECEIVED",

    "quotedCost": 10,

    "orderLineItems": [

      {

        "id": "9a4c65f9-f834-44bb-9e75-2c18c9a2a9cf",

        "order": "35e5059a-fd92-4078-a448-b00402b3fb5b",

        "orderableProductId": "2400e410-b8dd-4954-b1c0-80d8a8e785fc",

        "orderedQuantity": 530,

        "filledQuantity": 1300,

        "approvedQuantity": 20

      },

      {

        "id": "7b1b735d-c29a-4486-8352-04d3034e0d77",

        "order": "35e5059a-fd92-4078-a448-b00402b3fb5b",

        "orderableProductId": "103396e1-f5e4-4754-bb7b-1c799097dfea",

        "orderedQuantity": 0,

        "filledQuantity": 50,

        "approvedQuantity": 0

      }

    ]

  }


Image Added


12

Image Added

Image Added


13

put /orders/{id}/finalize

Image Added


14

get /orders/{id}/print

pdf format:

Image Added

csv format:

Image Added