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

Unable to create new Purchase Order with PO Line

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 3.0.0
    • ACQ Sprint 55, ACQ Sprint 56
    • 1
    • Thunderjet

    Description

      Unable to create new Purchase Order with PO Line

      How to reproduce:

      • send POST request with the following body
      {
       "notes":[],
       "order_type":"One-Time",
       "vendor":"4b05321a-3eb7-4dd4-8f1d-d6766c0e210c",
       "workflow_status":"Open",
       "po_lines":[
         {
          "cost":{"currency":"USD","list_price":"1","quantity_physical":"1"},
          "vendor_detail":{"instructions":""},
          "po_line_number":"12345-1",
          "acquisition_method":"Gift",
          "order_format":"Physical Resource",
          "title":"14 cows for America"
         }
       ]
      }
      

      It returns an error

      {
        "errors" : [ {
          "message" : "{\"errors\":[{\"message\":\"may not be null\",\"type\":\"1\",\"code\":\"-1\",\"parameters\":[{\"key\":\"source\",\"value\":\"null\"}]}]}",
          "parameters" : [ ]
        } ]
      }
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                cmcnally Craig McNally
                Andrei Shumski2 Andrei Shumski
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases